* libc/locale/locale.c (loadlocale): Change comments to refer to
ISO 639-3 rather than 639-2.
This commit is contained in:
parent
0b8e38dd8b
commit
da5f018bef
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2010-01-17 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/locale/locale.c (loadlocale): Allow three character
|
* libc/locale/locale.c (loadlocale): Allow three character
|
||||||
|
|
|
@ -52,7 +52,7 @@ the form
|
||||||
language[_TERRITORY][.charset][@@modifier]
|
language[_TERRITORY][.charset][@@modifier]
|
||||||
|
|
||||||
<<"language">> is a two character string per ISO 639, or, if not available
|
<<"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
|
<<"TERRITORY">> is a country code per ISO 3166. For <<"charset">> and
|
||||||
<<"modifier">> see below.
|
<<"modifier">> see below.
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@ loadlocale(struct _reent *p, int category)
|
||||||
|| c[1] < 'a' || c[1] > 'z')
|
|| c[1] < 'a' || c[1] > 'z')
|
||||||
return NULL;
|
return NULL;
|
||||||
c += 2;
|
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')
|
if (c[0] >= 'a' && c[0] <= 'z')
|
||||||
++c;
|
++c;
|
||||||
if (c[0] == '_')
|
if (c[0] == '_')
|
||||||
|
|
Loading…
Reference in New Issue