← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~paul-lucas/zorba/pjl-misc into lp:zorba

 

Paul J. Lucas has proposed merging lp:~paul-lucas/zorba/pjl-misc into lp:zorba.

Commit message:
Fix (?) to use of setlocale(3) in locale.cpp reported by Federico Cavalieri.

Requested reviews:
  Paul J. Lucas (paul-lucas)

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/pjl-misc/+merge/164563

Fix (?) to use of setlocale(3) in locale.cpp reported by Federico Cavalieri.
-- 
https://code.launchpad.net/~paul-lucas/zorba/pjl-misc/+merge/164563
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/zorbautils/locale.cpp'
--- src/zorbautils/locale.cpp	2013-04-02 21:40:03 +0000
+++ src/zorbautils/locale.cpp	2013-05-18 00:55:30 +0000
@@ -233,7 +233,7 @@
   //
   // Try the environment locale first.
   //
-  char const *loc = filter_useless_locale( ::setlocale( LC_ALL, "" ) );
+  char const *loc = filter_useless_locale( ::setlocale( LC_ALL, nullptr ) );
   if ( !loc ) {
     //
     // Try the "LANG" environment variable second.


Follow ups