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:
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index e80e47be4..24c59c7d6 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -66,6 +66,12 @@ con_to_str (char *d, const char *s, DWORD sz)
inline BOOL
str_to_con (char *d, const char *s, DWORD sz)
{
+ if (alternate_charset_active)
+ {
+ /* no translation when alternate charset is active */
+ memcpy(d, s, sz);
+ return TRUE;
+ }
return cp_convert (GetConsoleOutputCP (), d, get_cp (), s, sz);
}
@@ -1111,6 +1117,12 @@ fhandler_console::char_command (char c)
case 9: /* dim */
dev_state->intensity = INTENSITY_DIM;
break;
+ case 10: /* end alternate charset */
+ alternate_charset_active = FALSE;
+ break;
+ case 11: /* start alternate charset */
+ alternate_charset_active = TRUE;
+ break;
case 24:
dev_state->underline = FALSE;
break;