This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: ld-collate.c and ko_KR locale
- To: <libc-alpha at sources dot redhat dot com>
- Subject: PATCH: ld-collate.c and ko_KR locale
- From: Jungshik Shin <jungshik dot shin at yale dot edu>
- Date: Wed, 10 Oct 2001 09:21:51 -0400 (EDT)
- cc: <wkpark at chem dot skku dot ac dot kr>
- Reply-To: Jungshik Shin <jungshik dot shin at yale dot edu>
Attached is a small patch to locale/programs/ld-collate.c and
localedata/locales/ko_KR. In ld-collate.c, there's a typo which is
believed to cause malfunctioning of strcoll() and wcscoll() in some
cases. LC_COLLATE section of ko_KR has three '.'s where only two
'.'s have to be present. Both patches are thanks to Won-Kyu Park
<wkpark@chem.skku.ac.kr>.
Jungshik Shin
Index: libc/locale/programs/ld-collate.c
===================================================================
RCS file: /cvs/glibc/libc/locale/programs/ld-collate.c,v
retrieving revision 1.97
diff -u -r1.97 ld-collate.c
--- ld-collate.c 2001/08/10 04:10:39 1.97
+++ ld-collate.c 2001/10/06 07:41:32
@@ -1314,8 +1314,8 @@
uint32_t wc;
int cnt;
- /* Generate the the name. */
- sprintf (buf + preflen, base == 10 ? "%ld" : "%lx", from);
+ /* Generate the name. */
+ sprintf (buf + preflen, base == 10 ? "%ld" : "%lX", from);
/* Look whether this name is already defined. */
if (find_entry (&collate->seq_table, buf, symlen,
Index: libc/localedata/locales/ko_KR
===================================================================
RCS file: /cvs/glibc/libc/localedata/locales/ko_KR,v
retrieving revision 1.13
diff -u -r1.13 ko_KR
--- ko_KR 2000/11/15 23:01:14 1.13
+++ ko_KR 2001/10/06 07:41:55
@@ -36,6 +36,8 @@
% Several changes in LC_TIME
% Added tel_dom_fmt to LC_TELEPHONE
% Some cosmetic changes
+% 2001-10-08: Won-kyu Park <wkpark@chem.skku.ac.kr>
+% Fixed a typo in Hangul portion of LC_COLLATE
LC_IDENTIFICATION
title "Korean locale for Republic of Korea"
@@ -1179,7 +1181,7 @@
%%%
% HANGUL SYLLABLES
<UAC00>
-...
+..
<UD7A3>
%%%
% HANJA. For the moment, Hanjas defined in KS X 1001