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
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-08-22 19:01:03 +0400
committerChristopher Faylor <me@cgf.cx>2009-08-22 19:01:03 +0400
commitf3b6fef6313e6f262c7bb7d92bfedb82dbb47dbd (patch)
treee105f807794ba44c2abe848f372630f515d58964
parentfca22075429a0f4ffbc0f767ca3b99eec0b6d9d4 (diff)
* cygwin/strfuncs.cc (__set_charset_from_codepage): Add codepages 20866
(KOI8-R) and 21866 (KOI8-U). * doc/setup2.sgml (setup-locale-charsetlist): Add KOI8-R and KOI8-U to list of supported charsets.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/strfuncs.cc2
-rw-r--r--winsup/doc/ChangeLog5
-rw-r--r--winsup/doc/setup2.sgml2
4 files changed, 14 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b7621b1d9..d5b6c73b0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * strfuncs.cc (__set_charset_from_codepage): Add codepages 20866
+ (KOI8-R) and 21866 (KOI8-U).
+
2009-08-21 Christopher Faylor <me+cygwin@cgf.cx>
* dll_init.h (has_dtors): New flag.
diff --git a/winsup/cygwin/strfuncs.cc b/winsup/cygwin/strfuncs.cc
index 4d66dd527..e16d94d86 100644
--- a/winsup/cygwin/strfuncs.cc
+++ b/winsup/cygwin/strfuncs.cc
@@ -339,6 +339,8 @@ __set_charset_from_codepage (UINT cp, char *charset)
case 1256:
case 1257:
case 1258:
+ case 20866:
+ case 21866:
__small_sprintf (charset, "CP%u", cp);
return __cp_mbtowc;
case 28591:
diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog
index fdd3a5399..3fb8cfaeb 100644
--- a/winsup/doc/ChangeLog
+++ b/winsup/doc/ChangeLog
@@ -1,5 +1,10 @@
2009-08-22 Corinna Vinschen <corinna@vinschen.de>
+ * setup2.sgml (setup-locale-charsetlist): Add KOI8-R and KOI8-U to list
+ of supported charsets.
+
+2009-08-22 Corinna Vinschen <corinna@vinschen.de>
+
* setup2.sgml (setup-locale-charsetlist): Add description of
case-insensitivity of charsets. Fix a typo. Add "UTF8" to the list.
diff --git a/winsup/doc/setup2.sgml b/winsup/doc/setup2.sgml
index e102c0714..fa63a9e23 100644
--- a/winsup/doc/setup2.sgml
+++ b/winsup/doc/setup2.sgml
@@ -463,6 +463,8 @@ of the "CPxxx" style charsets, always use them with the trailing "CP".</para>
ISO-8859-15 28605 (ISO-8859-15)
ISO-8859-16 - (not available)
+ KOI8-R 20866 (KOI8-R Russian Cyrillic)
+ KOI8-U 21866 (KOI8-U Ukrainian Cyrillic)
SJIS 932 (ANSI/OEM Japanese)
GBK 936 (ANSI/OEM Simplified Chinese)
Big5 950 (ANSI/OEM Traditional Chinese)