
On Fri, 20 Aug 2010 02:05:13 +0400, Ilya Sokolov wrote:
Alexander Lamaison wrote:
On Fri, 20 Aug 2010 00:13:57 +0400, Ilya Sokolov wrote:
Boris Schaeling wrote: ... snip ... I think we should wait for encoding-aware string class.
You say 'wait' as though someone were actually working on this. Are they?
- u16string and u32string from cpp0x
Ok. By encoding aware you mean fixed to a static encoding.
- threating all char strings as UTF-8
Difficult You can't do it blindly. char strings can be anything. On Windows they would _rarely_ be UTF-8.
Btw, even boost::filesystem3::path is an encoding-aware string class in some sense ).
That depends what we mean by encoding 'aware'. On Windows it assumes char strings are in the local codepage and wchar_t strings are UCS2. These are the same assumptions made by the underlying Windows API. Alex -- Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org)