CVSROOT:        /cvs/src
Module name:    src
Changes by:     [email protected]  2009-05-14 19:49:37

Modified files:
        winsup/cygwin  : ChangeLog cygheap.cc cygheap.h dcrt0.cc 
                         environ.cc fhandler.h fhandler_console.cc 
                         strfuncs.cc syscalls.cc wchar.h 

Log message:
        * cygheap.cc (cygheap_init): Set Cygwin default locale values.
        * cygheap.h (struct cygheap_locale): New structure.
        (struct user_heap_info): Add cygheap_locale member locale.
        * dcrt0.cc (dll_crt0_1): Revert to calling _setlocale_r so that only
        the applications locale is reverted to "C".
        * environ.cc (environ_init): Remove unused got_lc variable.
        * fhandler.h (class dev_console): Remove now unsed locale variables.
        * fhandler_console.cc (fhandler_console::get_tty_stuff): Remove
        setting dev_console's locale members.
        (dev_console::con_to_str): Use internal locale settings.  Default to
        __ascii_wctomb if charset is "ASCII".
        (fhandler_console::write_normal): Ditto.
        * strfuncs.cc (__ascii_wctomb): Drop declaration.
        (__db_wctomb): Use fixed value 2 instead of not
        necessarily matching MB_CUR_MAX.
        (__eucjp_wctomb): Use 3 instead of MB_CUR_MAX.
        (sys_cp_wcstombs): Remove special case for "C" locale.
        (sys_wcstombs): Implement here.  Use internal locale data stored on
        cygheap.
        (sys_cp_mbstowcs): Remove special case for "C" locale.
        (sys_mbstowcs): Implement here.  Use internal locale data stored on
        cygheap.
        * syscalls.cc (internal_setlocale): New function to set cygheap locale
        data and to reset CWD posix path.
        (setlocale): Just call internal_setlocale from here if necessary.
        * wchar.h (__ascii_wctomb): Declare.
        (sys_wcstombs): Don't define inline, just declare.
        (sys_mbstowcs): Ditto.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.4488&r2=1.4489
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=src&r1=1.148&r2=1.149
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.h.diff?cvsroot=src&r1=1.136&r2=1.137
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&r1=1.356&r2=1.357
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/environ.cc.diff?cvsroot=src&r1=1.179&r2=1.180
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=src&r1=1.363&r2=1.364
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_console.cc.diff?cvsroot=src&r1=1.190&r2=1.191
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/strfuncs.cc.diff?cvsroot=src&r1=1.28&r2=1.29
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=src&r1=1.518&r2=1.519
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wchar.h.diff?cvsroot=src&r1=1.6&r2=1.7

Reply via email to