r16351 - gnucash/trunk/packaging/win32 - Add code page information to gnucash.bat, #458783.
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Jul 22 15:17:21 EDT 2007
Author: andi5
Date: 2007-07-22 15:17:19 -0400 (Sun, 22 Jul 2007)
New Revision: 16351
Trac: http://svn.gnucash.org/trac/changeset/16351
Modified:
gnucash/trunk/packaging/win32/gnucash.iss.in
Log:
Add code page information to gnucash.bat, #458783.
Instead of trying to retrieve the system code page, simply hard-code the
code pages for the configured languages. This is one more string for
each new translation of the custom messages. Suggestions for how to
parse the LangOptions/LanguageCodePage parameter in isl files are
welcome.
Modified: gnucash/trunk/packaging/win32/gnucash.iss.in
===================================================================
--- gnucash/trunk/packaging/win32/gnucash.iss.in 2007-07-22 12:09:46 UTC (rev 16350)
+++ gnucash/trunk/packaging/win32/gnucash.iss.in 2007-07-22 19:17:19 UTC (rev 16351)
@@ -184,7 +184,8 @@
{ Create the gnucash.bat file; #10 is the linefeed character and #13 CR }
FileName := appdir + '\bin\gnucash.bat' ;
- FileString := 'set PATH=' + appdir + '\bin;' + libdir + ';' + libdir + '\gnucash;%PATH%'#13#10 ;
+ FileString := 'chcp ' + ExpandConstant('{cm:LanguageCodePage}') + ''#13#10 ;
+ FileString := FileString + 'set PATH=' + appdir + '\bin;' + libdir + ';' + libdir + '\gnucash;%PATH%'#13#10 ;
FileString := FileString + 'set GUILE_WARN_DEPRECATED=no'#13#10 ;
FileString := FileString + 'set GNC_MODULE_PATH=' + pkglibdir + ''#13#10 ;
@@ -249,7 +250,13 @@
IconName_Uninstall=Uninstall GnuCash
IconComment_Uninstall=Uninstall the Finance Manager GnuCash
+;; List of Code pages, used in gnucash.bat
+LanguageCodePage=1252
+de.LanguageCodePage=1252
+el.LanguageCodePage=1253
+fr.LanguageCodePage=1252
+
;; ;;;;;;;;;;;;;;;;;;;;
;; German translation
More information about the gnucash-changes
mailing list