Boost logo

Boost :

Subject: Re: [boost] [general] What will string handling in C++ look like inthe future [was Always treat ... ]
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-01-19 12:42:25

Alexander Lamaison wrote:

> By changing the OS-default encoding to assume char* string was UTF-8.

You keep talking about "OS-default encoding", but there's no such thing.
POSIX operating systems do not assume anything about the encoding of char*
(*). You have a global locale (**) in C/C++ programs, and the user can
control it via environment variables (unless the program changes it), but
the OS itself does not.

(*) Except Mac OS X, which requires UTF-8 for paths.
(**) Actually, you have two global locales - C and C++, not necessarily in
sync with each other.

Boost list run by bdawes at, gregod at, cpdaniel at, john at