Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-01-17 17:57:32 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-01-17 17:57:32 +0300
commitda5f018bef3dfcb2adfbb5d38838a47fbbb6efca (patch)
tree0f711e355763123a3d6fd677e965b712f53a7c41 /newlib
parent0b8e38dd8bc9b4760c0667509d1eb5ef46c09ff3 (diff)
* libc/locale/locale.c (loadlocale): Change comments to refer to
ISO 639-3 rather than 639-2.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/locale/locale.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 1697e7490..e47bb7bc6 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2010-01-17 Corinna Vinschen <corinna@vinschen.de>
+ * libc/locale/locale.c (loadlocale): Change comments to refer to
+ ISO 639-3 rather than 639-2.
+
+2010-01-17 Corinna Vinschen <corinna@vinschen.de>
+
* libc/locale/locale.c (loadlocale): Allow three character
language codes to accommodate ISO 639-2 codes.
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 8eb943094..1349927bf 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -52,7 +52,7 @@ the form
language[_TERRITORY][.charset][@@modifier]
<<"language">> is a two character string per ISO 639, or, if not available
-for a given language, a three character string per ISO 639-2.
+for a given language, a three character string per ISO 639-3.
<<"TERRITORY">> is a country code per ISO 3166. For <<"charset">> and
<<"modifier">> see below.
@@ -475,7 +475,7 @@ loadlocale(struct _reent *p, int category)
|| c[1] < 'a' || c[1] > 'z')
return NULL;
c += 2;
- /* Allow three character Language per ISO 639-2 */
+ /* Allow three character Language per ISO 639-3 */
if (c[0] >= 'a' && c[0] <= 'z')
++c;
if (c[0] == '_')