#400 closed defect (fixed)
CStr should use wchar.h
Reported by: | Philip Taylor | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | Core engine | Keywords: | simple |
Cc: | Patch: |
Description
ps/CStr.cpp
has its own UTF-8 encoding/decoding logic in ToUTF8
/FromUTF8
. The implementation should be changed to use the functions in lib/wchar.h
, to remove the duplication of functionality. (The CStr
API ought to remain unchanged.)
Note:
See TracTickets
for help on using tickets.
(In [7201]) use lib/wchar.h for UTF8 conversion (avoid duplication, more aware of wchar_t differences and surrogate pairs) fixes #400