OSDN Git Service

* dcrt0.cc (dll_crt0_1): Use GetCommandLineW and convert to current
authorcorinna <corinna>
Thu, 31 Jan 2008 20:25:59 +0000 (20:25 +0000)
committercorinna <corinna>
Thu, 31 Jan 2008 20:25:59 +0000 (20:25 +0000)
commit50f78ae5ca07d7b9cccdcb10b8983e9ecc3aba4c
treeae4115a3d2c1253426fb99d18fc2a29628e6336e
parent5360afdee08b25118b6936d7326982c02d6aaa27
* dcrt0.cc (dll_crt0_1): Use GetCommandLineW and convert to current
codepage.
* environ.cc (set_file_api_mode): Always set file api to ANSI if not
using the OEM codepage.
(codepage_init): Allow "utf8" codepage.
* fhandler_clipboard.cc (set_clipboard): Convert clipbuf to void and
cast as needed.  Always convert input to wide char and write
CF_UNICODETEXT to clipboard.
(fhandler_dev_clipboard::read): Read CF_UNICODETEXT from clipboard and
convert to current codepage if CYGWIN_NATIVE format is not available.
* fhandler_console.cc: Drop redundant undef.
* smallprint.cc (__small_vsprintf): Convert PWCHAR and UNICODE_STRING
to current codepage for printing.
* strfuncs.cc: Use PWCHAR throughout.
(get_cp): Return CP_UTF8 for utf8_cp codepage setting.
(sys_wcstombs): Allow NULL target buffer.
(sys_wcstombs_alloc): New function.
(sys_mbstowcs_alloc): Ditto.
* winsup.h (codepage_type): Add utf8_cp.
(HEAP_NOTHEAP): Define.
(sys_wcstombs_alloc): Declare.
(sys_mbstowcs_alloc): Declare.
winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc
winsup/cygwin/environ.cc
winsup/cygwin/fhandler_clipboard.cc
winsup/cygwin/fhandler_console.cc
winsup/cygwin/smallprint.cc
winsup/cygwin/strfuncs.cc
winsup/cygwin/winsup.h