]> granicus.if.org Git - postgresql/commitdiff
Fix msvc install for cases where msgfmt (from gettext) is in a directory
authorMagnus Hagander <magnus@hagander.net>
Thu, 7 Feb 2008 17:58:16 +0000 (17:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 7 Feb 2008 17:58:16 +0000 (17:58 +0000)
that contains spaces.

Per complaint from Gevik Babakhani, like the last one.

src/tools/msvc/Install.pm

index f052d3bc3c4b1bcfb25c7d220d63fe31c91d7b93..7ada204c95517244e8137ca3644751b62205ce8c 100644 (file)
@@ -3,7 +3,7 @@ package Install;
 #
 # Package that provides 'make install' functionality for msvc builds
 #
-# $PostgreSQL: pgsql/src/tools/msvc/Install.pm,v 1.27 2008/02/07 13:49:00 mha Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Install.pm,v 1.28 2008/02/07 17:58:16 mha Exp $
 #
 use strict;
 use warnings;
@@ -476,7 +476,7 @@ sub GenerateNLSFiles
 
             EnsureDirectories($target, "share/locale/$lang", "share/locale/$lang/LC_MESSAGES");
             system(
-"$nlspath\\bin\\msgfmt -o $target\\share\\locale\\$lang\\LC_MESSAGES\\$prgm.mo $_"
+"\"$nlspath\\bin\\msgfmt\" -o \"$target\\share\\locale\\$lang\\LC_MESSAGES\\$prgm.mo\" $_"
               )
               && croak("Could not run msgfmt on $dir\\$_");
             print ".";