Skip to content

Commit 16038d5

Browse files
committed
patch 8.0.0245: zh_CN.cp936.po has a conversion error
Problem: The generated zh_CN.cp936.po message file is not encoded properly. Solution: Instead of using zh_CN.po as input, use zh_CN.UTF-8.po.
1 parent d9c6064 commit 16038d5

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/po/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,13 @@ sk.cp1250.po: sk.po
232232
iconv -f iso-8859-2 -t cp1250 sk.po | \
233233
sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
234234

235-
# Convert zh_CN.po to create zh_CN.cp936.po.
236-
# set 'charset' to gbk to avoid that msfmt generates a warning
237-
zh_CN.cp936.po: zh_CN.po
235+
# Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
236+
# Set 'charset' to gbk to avoid that msfmt generates a warning.
237+
# This used to convert from zh_CN.po, but that results in a conversion error.
238+
zh_CN.cp936.po: zh_CN.UTF-8.po
238239
rm -f zh_CN.cp936.po
239-
iconv -f gb2312 -t cp936 zh_CN.po | \
240-
sed -e 's/charset=gb2312/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
240+
iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \
241+
sed -e 's/charset=utf-8/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
241242

242243
# Convert ko.UTF-8.po to create ko.po.
243244
ko.po: ko.UTF-8.po

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
245,
767769
/**/
768770
244,
769771
/**/

0 commit comments

Comments
 (0)