Date: Friday, January 6, 2006 @ 16:45:45
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: Common.cpp (1.18 -> 1.19)

Better explanation concerning the quest for an UTF8 locale.


------------+
 Common.cpp |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletion(-)


Index: carob/src/Common.cpp
diff -u carob/src/Common.cpp:1.18 carob/src/Common.cpp:1.19
--- carob/src/Common.cpp:1.18   Mon Dec 19 19:32:03 2005
+++ carob/src/Common.cpp        Fri Jan  6 16:45:45 2006
@@ -33,11 +33,21 @@
 using std::wcerr;
 using std::endl;
 
+
+// On linux try "locale -a" to get the list of all available locales.
 // TODO: it would be nice to be able to get this at runtime
 // (in a non-portable way quite obviously...)
-// On linux try "locale -a"
+
+// An empty string "" will get the "default" C++ locale, typically set
+// at run-time using environnement variables like LANG/LC_XXX. This
+// will work fine as long as this "default" is set to some UTF8 locale.
+
+// Using "C" should work fine as long as every string involved is pure
+// ASCII.
+
 #define NAME_OF_ANY_UTF8_LOCALE_AVAILABLE "en_US.utf8"
 
+
 void CarobNS::setLogLevel(const LogLevel l)
 {
   CarobNS::currentLogLevel = l;

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to