Re: [Boost-bugs] [Boost C++ Libraries] #5289: Library that uses Boost Filesystem would not start when the stdandard C++ library does not support the current locale

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5289: Library that uses Boost Filesystem would not start when the stdandard C++ library does not support the current locale
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-07 12:08:51


#5289: Library that uses Boost Filesystem would not start when the stdandard C++
library does not support the current locale
----------------------------------+-----------------------------------------
  Reporter: artyomtnk@… | Owner: bemandawes
      Type: Bugs | Status: assigned
 Milestone: Boost 1.47.0 | Component: filesystem
   Version: Boost 1.46.0 | Severity: Showstopper
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment (by artyomtnk@…):

> I'm concerned that this patch doesn't include any test cases. I'd really
 like to first add additional test cases that fail with the current
 implementation and then pass when the patch is supplied

 The simplest test that can be done under any platform is:

 1. link the library to simple executable that does nothing.
 2. Run it with environment variable "LANG" set to "xx_YY.UTF-8" (illegal
 locale) and check if the library starts (fails to start without this
 patch).
 3. Check that the boost::filesystem::path's locale has UTF-8 facet
 (trivially by converting one wide NON-ASCII character to char.

 It is very easy to reproduce this bug (by setting illegal locale
 environment variable) but it requires some non-trivial scripting with BBv2
 (that I unfortunately not too familiar with it)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5289#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC