summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/wincap.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-07-20 15:44:55 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-07-20 15:44:55 +0000
commit20fc2f493621f1f159bbea354e32a1d30b5f428a (patch)
treea0943ce4f47141ac69bde03caf8085ed2353ea30 /winsup/cygwin/wincap.h
parentcb8ee36ae8a617fc6fddc36d4c2e76e7593d2765 (diff)
downloadcygnal-20fc2f493621f1f159bbea354e32a1d30b5f428a.tar.gz
cygnal-20fc2f493621f1f159bbea354e32a1d30b5f428a.tar.bz2
cygnal-20fc2f493621f1f159bbea354e32a1d30b5f428a.zip
* wincap.h (wincaps::has_always_all_codepages): New element.
* wincap.cc: Implement above element throughout. * wchar.h (__sjis_mbtowc): Declare. (__eucjp_mbtowc): Ditto. (__gbk_mbtowc): Ditto. (__kr_mbtowc): Ditto. (__big5_mbtowc): Ditto. * syscalls.cc (internal_setlocale): Convert to char * function. Return parameter by default. Return NULL if request to use a charset can't be satisfied due to missing codepage support in the underlying OS. Fix comment. (setlocale): Store original locale. Restore to original locale if internal_setlocale returns NULL.
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r--winsup/cygwin/wincap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h
index ed6eaa9c9..74955ff63 100644
--- a/winsup/cygwin/wincap.h
+++ b/winsup/cygwin/wincap.h
@@ -48,6 +48,7 @@ struct wincaps
unsigned has_broken_udf : 1;
unsigned has_console_handle_problem : 1;
unsigned has_broken_alloc_console : 1;
+ unsigned has_always_all_codepages : 1;
};
class wincapc
@@ -102,6 +103,7 @@ public:
bool IMPLEMENT (has_broken_udf)
bool IMPLEMENT (has_console_handle_problem)
bool IMPLEMENT (has_broken_alloc_console)
+ bool IMPLEMENT (has_always_all_codepages)
#undef IMPLEMENT
};