CVSROOT:        /cvs/src
Module name:    src
Changes by:     [EMAIL PROTECTED]       2008-02-05 17:37:10

Modified files:
        winsup/cygwin  : ChangeLog autoload.cc environ.cc fhandler.h 
                         fhandler_console.cc strfuncs.cc winsup.h 

Log message:
        * autoload.cc (CharToOemA): Remove.
        (CharNextExA): Define.
        * environ.cc (codepage_init): Un-static.  Set active_codepage to
        active codepage.  Default to ansi regardless of buf pointer.
        * fhandler.h (dev_console::get_console_cp): New method.
        (dev_console::con_to_str): Change declaration according to new
        implementation.
        (dev_console::str_to_con): Ditto.
        * fhandler_console.cc (cp_convert): Remove.
        (dev_console::con_to_str): Redefine to take WCHAR as incoming console
        char.
        (dev_console::get_console_cp): Return correct codepage according to
        alternate_charset_active setting.
        (dev_console::str_to_con): Redefine to create WCHAR buffer for console
        output.
        (fhandler_console::read): Read console input as WCHARs.
        (base_chars): Fix typo in comment.
        (fhandler_console::char_command): Save and restore console output
        buffer using UNICODE functions.
        (fhandler_console::write_normal): Convert to write output in UNICODE.
        Use CharNextExA to recognize multibyte characters in input.  Workaround
        problem with UTF-8 and MultiByteToWideChar.  Simplify the loop for
        printing "normal" characters.
        * strfuncs.cc (active_codepage): New variable to store active codepage.
        (get_cp): Call codepage_init() if active_codepage is uninitialized.
        Just return active_codepage.
        (is_cp_multibyte): New function.
        * winsup.h (active_codepage): Declare.
        (codepage_init): Declare.
        (is_cp_multibyte): Declare.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.3998&r2=1.3999
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/autoload.cc.diff?cvsroot=src&r1=1.143&r2=1.144
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/environ.cc.diff?cvsroot=src&r1=1.157&r2=1.158
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=src&r1=1.332&r2=1.333
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_console.cc.diff?cvsroot=src&r1=1.171&r2=1.172
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/strfuncs.cc.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/winsup.h.diff?cvsroot=src&r1=1.206&r2=1.207

Reply via email to