Merge lp:~zorba-coders/zorba/bug1102537 into lp:zorba

Proposed by Rodolfo Ochoa
Status: Merged
Approved by: Chris Hillery
Approved revision: 11191
Merged at revision: 11192
Proposed branch: lp:~zorba-coders/zorba/bug1102537
Merge into: lp:zorba
Diff against target: 30 lines (+3/-3)
1 file modified
src/zorbautils/locale.cpp (+3/-3)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug1102537
Reviewer Review Type Date Requested Status
Juan Zacarias Approve
Rodolfo Ochoa Approve
Review via email: mp+144166@code.launchpad.net

Commit message

Fix for windows compilation

Description of the change

Fix for windows compilation

To post a comment you must log in.
Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) :
review: Approve
Revision history for this message
Juan Zacarias (juan457) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/bug1102537 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:275 (message):
  Validation queue job bug1102537-2013-01-22T02-08-08.222Z is finished. The
  final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/bug1102537 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:275 (message):
  Validation queue job bug1102537-2013-01-22T02-48-43.131Z is finished. The
  final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/bug1102537 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:275 (message):
  Validation queue job bug1102537-2013-01-22T03-32-08.259Z is finished. The
  final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug1102537-2013-01-22T07-26-06.744Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/zorbautils/locale.cpp'
2--- src/zorbautils/locale.cpp 2013-01-17 23:58:37 +0000
3+++ src/zorbautils/locale.cpp 2013-01-21 18:27:23 +0000
4@@ -191,7 +191,7 @@
5 * call it directly since we might be running on Windows XP. Hence, check to
6 * see if it's available and call it indirectly if so.
7 */
8-static BOOL Zorba_IsValidLocaleName( LPCWSTR lpLocaleName ) {
9+static bool Zorba_IsValidLocaleName( LPCWSTR lpLocaleName ) {
10 typedef int (WINAPI *IsValidLocaleName_type)( LPCWSTR );
11
12 static IsValidLocaleName_type IsValidLocaleName_ptr;
13@@ -204,7 +204,7 @@
14 init = true;
15 }
16
17- return IsValidLocaleName_ptr ? IsValidLocaleName_ptr( lpLocaleName ) : 0;
18+ return IsValidLocaleName_ptr ? IsValidLocaleName_ptr( lpLocaleName )!=0 : false;
19 }
20
21 #else /* WIN32 */
22@@ -1303,7 +1303,7 @@
23 bool is_supported( iso639_1::type lang, iso3166_1::type country ) {
24 #ifdef WIN32
25 unique_ptr<WCHAR[]> const wlocale_name( get_wlocale_name( lang, country ) );
26- return !!::Zorba_IsValidLocaleName( wlocale_name.get() );
27+ return Zorba_IsValidLocaleName( wlocale_name.get() );
28 #else
29 if ( locale_t const loc = get_unix_locale_t( lang, country ) ) {
30 ::freelocale( loc );

Subscribers

People subscribed via source and target branches