[PATCH/cygwin]: Support GEORGIAN-PS and PT154 charsets

Reini Urban rurban@x-ray.at
Sun Feb 7 12:23:00 GMT 2010


2010/2/6 Corinna Vinschen:
> I just applied the below patch.  It adds support for the GEORGIAN-PS and
> PT154 charsets if _MB_EXTENDED_CHARSETS_WINDOWS is set.
...
> RCS file: /cvs/src/src/newlib/libc/locale/locale.c,v
> retrieving revision 1.36
> diff -u -p -r1.36 locale.c
> --- libc/locale/locale.c        5 Feb 2010 21:24:42 -0000       1.36
> +++ libc/locale/locale.c        6 Feb 2010 18:15:46 -0000
> @@ -56,34 +56,36 @@ for a given language, a three character
>  <<"TERRITORY">> is a country code per ISO 3166.  For <<"charset">> and
>  <<"modifier">> see below.
>
> -Additionally to the POSIX specifier, seven extensions are supported for
> -backward compatibility with older implementations using newlib:
> -<<"C-UTF-8">>, <<"C-JIS">>, <<"C-eucJP">>, <<"C-SJIS">>, <<C-KOI8-R>>,
> -<<C-KOI8-U>>, <<"C-ISO-8859-x">> with 1 <= x <= 15, or <<"C-CPxxx">> with
> -xxx in [437, 720, 737, 775, 850, 852, 855, 857, 858, 862, 866, 874, 932,
> -1125, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258].
> -
> -Instead of <<"C-">>, you can specify also <<"C.">>.  Both variations allow
> +Additionally to the POSIX specifier, the following extension is supported
> +for backward compatibility with older implementations using newlib:
> +<<"C-charset">>.
> +Instead of <<"C-">>, you can also specify <<"C.">>.  Both variations allow
>  to specify language neutral locales while using other charsets than ASCII,
>  for instance <<"C.UTF-8">>, which keeps all settings as in the C locale,
>  but uses the UTF-8 charset.
>
> -Even when using POSIX locale strings, the only charsets allowed are
> +The following charsets are recogized:

typo
-- 
Reini Urban



More information about the Newlib mailing list