#179 locale test

5.2
open-wont-fix
3
2008-10-21
2008-06-11
No

Mac OS X 10.5.3, STLport r3548 (trunk)

...
CodecvtTest::special_encodings
Not enough platform localization support to check 936 code page
encoding.
Not enough platform localization support to check UTF8 encoding.
CMathTest::import_checks
...

I have opinion that at least UTF8 support is fine on Mac.

Discussion

  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-06-11

    Logged In: YES
    user_id=615813
    Originator: YES

    The same on Linux. UTF8 fine on system.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-06-11

    Logged In: YES
    user_id=615813
    Originator: YES

    r3557 (trunk), Linux, glibc 2.7:

    LocaleTest::num_put_get
    fr_FR

    ../../../test/unit/num_facets_test.cpp(53) : CPPUNIT_ASSERT(fostr.str() == ref);

    ../../../test/unit/num_facets_test.cpp(53) : CPPUNIT_ASSERT(fostr.str() == ref);

    ../../../test/unit/num_facets_test.cpp(53) : CPPUNIT_ASSERT(fostr.str() == ref);
    ru_RU.koi8r
    en_US
    C
    LocaleTest::money_put_get
    fr_FR
    ru_RU.koi8r

    ../../../test/unit/money_facets_test.cpp(135) : CPPUNIT_ASSERT(str_res[index++] == *rl.money_thousands_sep);

    ../../../test/unit/money_facets_test.cpp(135) : CPPUNIT_ASSERT(str_res[index++] == *rl.money_thousands_sep);

    ../../../test/unit/money_facets_test.cpp(135) : CPPUNIT_ASSERT(str_res[index++] == *rl.money_thousands_sep);

     
  • Francois Dumont

    Francois Dumont - 2008-06-12

    Logged In: YES
    user_id=1096600
    Originator: NO

    Well, Mac OS X and Linux surely have UTF8 support but they never have been bound to STLport. Under Windows I used the MultiByteToWideChar/WideCharToMultiByte functions to perform those conversions; it is limited to Windows code pages and UTF7/UTF8 encodings.

    Under Linux, as I already told you, I only see libiconv to perform the conversions. But because of the libiconv Api we would have to limit conversions to stateless encodings like UTF7/UTF8. I have schedule support of it but in a future version, surely 5.3.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-10-21

    Locale tests not take into account real locales in OE. So this test may pass under one OE, but fail under another (even similar) OE.

    Looks like this will not fixed in 5.2.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-10-21
    • labels: --> General code
    • milestone: --> 5.2
    • priority: 5 --> 3
    • assigned_to: nobody --> complement
    • status: open --> open-wont-fix
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks