From 0d21eb54125f4c05ce3389628fbed3cbbcb1b6c1 Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 24 Sep 2008 15:47:40 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45852 Add special handling a for charset that Java uses a non-default name for git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@698613 13f79535-47bb-0310-9956-ffa450edef68 --- res/tomcat.nsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/res/tomcat.nsi b/res/tomcat.nsi index c70263c65..d306320ed 100644 --- a/res/tomcat.nsi +++ b/res/tomcat.nsi @@ -535,8 +535,11 @@ Silent: FileOpen $R9 "$INSTDIR\conf\tomcat-users.xml" w ; File will be written using current windows codepage System::Call 'Kernel32::GetACP() i .r18' - FileWrite $R9 "$\r$\n" - + StrCmp $R8 "932" 0 +3 + ; Special case where Java uses non-standard name for character set + FileWrite $R9 "$\r$\n" + Goto +2 + FileWrite $R9 "$\r$\n" Push "$TEMP\confinstall\tomcat-users_1.xml" Call copyFile FileWrite $R9 $R5 -- 2.11.0