Opened 15 years ago

Closed 15 years ago

#1293 closed Bugs (fixed)

system_error_test doesn't take into account internationalization

Reported by: Nicola Musatti Owned by: Beman Dawes
Milestone: Boost 1.35.0 Component: system
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

I'm using bcc32 5.9.2 on an italian version of Windows XP SP2. system_error_test fails because the strings returned by the what() member function are not the expected ones. However the ones returned appear to be simple translations of the original ones. Here's my text output:

test se_0_m

what() returns "se_0_m"

test se_1_m

what() returns "se_1_m: Funzione non corretta"

..\libs\system\test\system_error_test.cpp(44): test std::string( ex.what() ) == str failed in function: 'test' expected "se_1_m: Incorrect function", but what() returned "se_1_m: Funzione non corretta" test se_0_nm

what() returns ""

test se_1_nm

what() returns "Funzione non corretta"

..\libs\system\test\system_error_test.cpp(44): test std::string( ex.what() ) == str failed in function: 'test' expected "Incorrect function", but what() returned "Funzione non corretta" test se_0_nmx

what() returns ""

test se_1_nmx

what() returns "Funzione non corretta"

..\libs\system\test\system_error_test.cpp(44): test std::string( ex.what() ) == str failed in function: 'test' expected "Incorrect function", but what() returned "Funzione non corretta" test se_1u_m

what() returns "se_1u_m: Funzione non corretta"

..\libs\system\test\system_error_test.cpp(44): test std::string( ex.what() ) == str failed in function: 'test' expected "se_1u_m: Incorrect function", but what() returned "se_1u_m: Funzione non corretta"

Change History (2)

comment:1 by René Rivera, 15 years ago

Component: Nonesystem

comment:2 by Beman Dawes, 15 years ago

Milestone: To Be DeterminedBoost 1.35.0
Resolution: fixed
Status: newclosed

I saw those test results yesterday and have already committed a fix.

Thanks for testing! It is a real help to have tests run on a machine configured for a language other than English.

--Beman

Note: See TracTickets for help on using tickets.