Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes #1161 - spaces in filenames should now be handled better (filen…

…ame parameters are enclosed in "")

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 839bcfe33059e43c382bdc5204cd08fa185a0bd6 1 parent 2bd833d
Georg Bauer authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  django/bin/compile-messages.py
  2. +2 −2 django/bin/make-messages.py
View
2  django/bin/compile-messages.py
@@ -19,6 +19,6 @@
if file.endswith('.po'):
sys.stderr.write('processing file %s in %s\n' % (file, dirpath))
pf = os.path.splitext(os.path.join(dirpath, file))[0]
- cmd = 'msgfmt -o %s.mo %s.po' % (pf, pf)
+ cmd = 'msgfmt -o "%s.mo" "%s.po"' % (pf, pf)
os.system(cmd)
View
4 django/bin/make-messages.py
@@ -118,7 +118,7 @@
os.unlink(os.path.join(dirpath, thefile))
if os.path.exists(potfile):
- (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'b')
+ (stdin, stdout, stderr) = os.popen3('msguniq "%s"' % potfile, 'b')
msgs = stdout.read()
errors = stderr.read()
if errors:
@@ -127,7 +127,7 @@
sys.exit(8)
open(potfile, 'w').write(msgs)
if os.path.exists(pofile):
- (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'b')
+ (stdin, stdout, stderr) = os.popen3('msgmerge -q "%s" "%s"' % (pofile, potfile), 'b')
msgs = stdout.read()
errors = stderr.read()
if errors:
Please sign in to comment.
Something went wrong with that request. Please try again.