Module Name: src Committed By: drochner Date: Tue Feb 23 19:48:26 UTC 2010
Modified Files: src/lib/libcurses: acs.c add_wchstr.c addbytes.c addch.c border.c cchar.c curses.h curses_private.h ins_wch.c ins_wstr.c line.c move.c touchwin.c Log Message: misc fixes and improvements: -call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the locale settings is (still) at "C" - otherwise the CODESET doesn't work -fix the type of the WACS_* symbols -- this needs to be cchar_t* -add safeguards where the return value of wcwidth() is used for loop counters or indexing -- it can be -1 -use more common code in the widechar support case -- in particular let the wchar functions do the work even if chtype ones were called -implement wcursyncup/wsyncup/wsyncdown -somewhat experimental: allow ACS_* variables to refer to WACS_* table entries -- this way, programs using the old chtype using API can use UTF8 line drawing on terminals which support UTF8 but not ACS switching -fix some logics bugs in UTF8 recognition and ALTCHARSET handling To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libcurses/acs.c cvs rdiff -u -r1.3 -r1.4 src/lib/libcurses/add_wchstr.c \ src/lib/libcurses/cchar.c cvs rdiff -u -r1.35 -r1.36 src/lib/libcurses/addbytes.c cvs rdiff -u -r1.15 -r1.16 src/lib/libcurses/addch.c cvs rdiff -u -r1.12 -r1.13 src/lib/libcurses/border.c cvs rdiff -u -r1.99 -r1.100 src/lib/libcurses/curses.h cvs rdiff -u -r1.44 -r1.45 src/lib/libcurses/curses_private.h cvs rdiff -u -r1.4 -r1.5 src/lib/libcurses/ins_wch.c \ src/lib/libcurses/ins_wstr.c cvs rdiff -u -r1.5 -r1.6 src/lib/libcurses/line.c cvs rdiff -u -r1.16 -r1.17 src/lib/libcurses/move.c cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/touchwin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.