Summary: | [locale] [patch] A patch that can make freebsd support zh_CN.GB18030 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Liu Kang <lazykang> | ||||||||||||||||||
Component: | conf | Assignee: | Andrey A. Chernov <ache> | ||||||||||||||||||
Status: | Closed FIXED | ||||||||||||||||||||
Severity: | Affects Only Me | ||||||||||||||||||||
Priority: | Normal | ||||||||||||||||||||
Version: | Unspecified | ||||||||||||||||||||
Hardware: | Any | ||||||||||||||||||||
OS: | Any | ||||||||||||||||||||
Attachments: |
|
Description
Liu Kang
2003-05-03 19:10:11 UTC
There might be some encoding problem in last patch. I hope this would work. --- /dev/null Sat May 3 23:56:56 2003 +++ share/msgdef/zh_CN.GB18030.src Sun May 4 00:57:02 2003 @@ -0,0 +1,14 @@ +# $FreeBSD$ +# +# WARNING: spaces may be essential at the end of lines +# WARNING: empty lines are essential too +# +# yesexpr +^[yY£ù£ÙÊÇ].* +# noexpr +^[nN£î£Î²»·ñ].* +# yesstr +ÊÇ +# nostr +·ñ +# EOF --- /dev/null Sat May 3 23:56:56 2003 +++ share/monetdef/zh_CN.GB18030.src Sun May 4 00:50:08 2003 @@ -0,0 +1,36 @@ +# $FreeBSD$ +# +# WARNING: spaces may be essential at the end of lines +# WARNING: empty lines are essential too +# +# int_curr_symbol (last character always SPACE) +CNY +# currency_symbol +£¤ +# mon_decimal_point +. +# mon_thousands_sep +, +# mon_grouping, separated by ; +3;3 +# positive_sign + +# negative_sign +- +# int_frac_digits +0 +# frac_digits +0 +# p_cs_precedes +1 +# p_sep_by_space +0 +# n_cs_precedes +1 +# n_sep_by_space +0 +# p_sign_posn +1 +# n_sign_posn +4 +# EOF --- /dev/null Sat May 3 19:31:48 2003 +++ share/timedef/zh_CN.GB18030.src Sat May 3 23:47:43 2003 @@ -0,0 +1,102 @@ +# $FreeBSD$ +# +# WARNING: spaces may be essential at the end of lines +# WARNING: empty lines are essential too +# +# Short month names +# + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +# +# Long month names +# +Ò»Ô +¶þÔ +ÈýÔ +ËÄÔ +ÎåÔ +ÁùÔ +ÆßÔ +°ËÔ +¾ÅÔ +ʮԠ+ʮһÔ +Ê®¶þÔ +# +# Short weekday names +# +ÖÜÈÕ +ÖÜÒ» +Öܶþ +ÖÜÈý +ÖÜËÄ +ÖÜÎå +ÖÜÁù +# +# Long weekday names +# +ÐÇÆÚÈÕ +ÐÇÆÚÒ» +ÐÇÆÚ¶þ +ÐÇÆÚÈý +ÐÇÆÚËÄ +ÐÇÆÚÎå +ÐÇÆÚÁù +# +# X_fmt +# +%Hʱ%M·Ö%SÃë +# +# x_fmt +# +%Y/%m/%d +# +# c_fmt +# +%a %b/%e %T %Y +# +# am +# +ÉÏÎç +# +# pm +# +ÏÂÎç +# +# date_fmt +# +%YÄê%bÔÂ%eÈÕ %A %X %Z +# +# Long month names (alternative) +# +Ò»Ô +¶þÔ +ÈýÔ +ËÄÔ +ÎåÔ +ÁùÔ +ÆßÔ +°ËÔ +¾ÅÔ +ʮԠ+ʮһÔ +Ê®¶þÔ +# +# md_order +# +md +# +# ampm_fmt +# +%I:%M:%S %p +# EOF _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 Responsible Changed From-To: freebsd-bugs->ache Over to locale maintainer. State Changed From-To: open->feedback Coule you please put your patch to some WWW site? It is damaged by PR system in several ways. http://www.coredump.cn/patch_gb18030.txt http://www.coredump.cn/patch_gb18030.tar.gz _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail On Tue, Jun 03, 2003 at 03:00:16 +0800, Kang Liu wrote:
> http://www.coredump.cn/patch_gb18030.txt
> http://www.coredump.cn/patch_gb18030.tar.gz
There are some problems in your patches.
1) No libc code found to handle "GBK2K" encoding.
2) VARIABLE CODESET=GB18030 is not needed.
3) DIGIT can't be outside of ASCII
4) Please remade your patches to be based on -current code set
5) SWIDTH1 is default for printable characters, so there is no needs to specify it directly. This patch is made by a group of Chinese FreeBSD Enthusiast. ^_^ * Robin Hu <huxw@knight.6test.edu.cn> * Kang Liu <liukang@bjpu.edu.cn> * Xin Li <delphij@frontfree.net> * Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw> The patch for libc is made by Robin Hu; Kang Liu sent the PR:misc/51729 which is the first step to GB18030. Xin Li has done a lot in testing and information gathering; Shen Chuan-Hsing has made the gbk support(PR:misc/51504), he also provided us various useful information on this subject. Also thanks ache@freebsd.org, without ache's help we can not notice the mistakes in previous patch. I think it might be one of the most important patch for all Chinese FreeBSD users, hope it works well in this time. :p Could anyone have a try? http://www.coredump.cn/patch_gb18030-2.txt or http://www.coredump.cn/patch_gb18030-2.tar.gz or ftp://ftp.bjpu.edu.cn/incoming/cai/bsd/patch_gb18030-2.txt (ONLY For China Education And Research Network,CERNET). Kang Liu _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail On Mon, Jul 28, 2003 at 21:28:23 +0800, Kang Liu wrote:
> Could anyone have a try?
> http://www.coredump.cn/patch_gb18030-2.txt
Code
+ if (result)
+ *result = string 1;
and a like in other places produce syntax error. It means that it never
tested or even compiled. People please test your patches before submitting
them.
It should be *result=string+1; *result=string+2; result=string+4; .... and so on. The patch in my computer is written like that, but I do not know why the code changed in that file. :( I'm really sorry about that. I've remade it as http://www.coredump.cn/patch_gb18030-3.txt _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail State Changed From-To: feedback->patched Committed into -current Committed and MFCed long time ago. I think it can be closed. Best Regards -- Rionda aka Matteo Riondato Disinformato per default G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org) Committed and MFCed long time ago. I think it can be closed. Best Regards -- Rionda aka Matteo Riondato Disinformato per default G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org) State Changed From-To: patched->closed This has been fixed in all supported branches for some time now |