rpms/squirrelmail/FC-4 squirrelmail.spec,1.24,1.25
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Apr 11 20:53:22 UTC 2006
Author: wtogami
Update of /cvs/dist/rpms/squirrelmail/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv4881
Modified Files:
squirrelmail.spec
Log Message:
Fix Chinese and Korean too
Index: squirrelmail.spec
===================================================================
RCS file: /cvs/dist/rpms/squirrelmail/FC-4/squirrelmail.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- squirrelmail.spec 24 Mar 2006 13:18:20 -0000 1.24
+++ squirrelmail.spec 11 Apr 2006 20:53:17 -0000 1.25
@@ -6,7 +6,7 @@
Summary: SquirrelMail webmail client
Name: squirrelmail
Version: 1.4.6
-Release: 4.fc4
+Release: 5.fc4
License: GPL
URL: http://www.squirrelmail.org/
Group: Applications/Internet
@@ -70,7 +70,7 @@
functions/strings.php
# replace splash screen
-%if %{fedora_splash}
+%if %{fedora_splash} == 1
cp %{SOURCE2} images/sm_logo.png
%else
cp %{SOURCE3} images/sm_logo.png
@@ -84,10 +84,19 @@
-e "s/^\(\$languages\['\([^']*\)'\]\['CHARSET'].*= '\)\([^']*\)';/\1utf-8';/" \
-e "s/^\(\$languages\['\([^']*\)'\]\['LOCALE'].*=\).*/\1 '\2.UTF-8';/"
-# Hard-code Japanese to send iso-2022-jp
+# Hard-code Japanese to send iso-2022-jp, UTF-8 is unrealistic
# Without this, 1.4.6 sends eucjp which is clearly wrong
sed -i s/"$languages\['ja_JP'\]\['CHARSET'\] = 'utf-8';"/"$languages\['ja_JP'\]\['CHARSET'\] = 'iso-2022-jp';"/ functions/i18n.php
-
+# Hard-code Korean to euc-KR, UTF-8 is unrealistic
+# and not properly handled by squirrelmail
+sed -i s/"$languages\['ko_KR'\]\['CHARSET'\] = 'utf-8';"/"$languages\['ko_KR'\]\['CHARSET'\] = 'euc-KR';"/ functions/i18n.php
+
+# Hard-code Simplified Chinese charset, UTF-8 is unrealistic
+sed -i s/"$languages\['zh_CN'\]\['CHARSET'\] = 'utf-8';"/"$languages\['zh_CN'\]\['CHARSET'\] = 'gb2312';"/ functions/i18n.php
+sed -i s/"$languages\['zh_CN'\]\['LOCALE'\] = 'zh_CN.UTF-8';"/"$languages\['zh_CN'\]\['LOCALE'\] = 'zh_CN.GB2312';"/ functions/i18n.php
+# Hard-code Traditional Chinese charset, UTF-8 is unrealistic
+sed -i s/"$languages\['zh_TW'\]\['CHARSET'\] = 'utf-8';"/"$languages\['zh_TW'\]\['CHARSET'\] = 'big5';"/ functions/i18n.php
+sed -i s/"$languages\['zh_TW'\]\['LOCALE'\] = 'zh_TW.UTF-8';"/"$languages\['zh_TW'\]\['LOCALE'\] = 'zh_TW.BIG5';"/ functions/i18n.php
cd locale_tempdir
for LOCALE in `ls locale/` ; do
@@ -221,6 +230,9 @@
%{_sysconfdir}/cron.daily/squirrelmail.cron
%changelog
+* Tue Apr 04 2006 Warren Togami <wtogami at redhat.com> 1.4.6-5
+- Fix Chinese and Korean too
+
* Fri Mar 24 2006 Warren Togami <wtogami at redhat.com> 1.4.6-4
- Fix outgoing Japanese mail to iso-2022-jp for now (#185767)
More information about the fedora-cvs-commits
mailing list