Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [filesystem] using locales on Solaris with GCC
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JonathonS  
View profile  
 More options Sep 20 2012, 12:54 pm
From: JonathonS <thejunk...@gmail.com>
Date: Thu, 20 Sep 2012 09:53:42 -0700
Local: Thurs, Sep 20 2012 12:53 pm
Subject: Re: [Boost-users] [filesystem] using locales on Solaris with GCC
Thanks Lars for the help.

> You could probably stub up a no-op codecvt and pass that in wherever
> Boost.Filesystem has an default codecvt parameter.

I thought of this idea, but unfortunately, this would require the devs
to remember to pass in the stubbed codecvt implementation whenever
they create a filesystem::path object.  I guess I could create a
helper function to return a path object, but then again, that would
require them to use my helper function.  I don't think they would like
this.

Is there a way to say, "always use this codecvt for all locales" ?

> As I understand it, your explosions is due to the codecvt()
> instantiation itself, not the actual use of it.

Correct.  Whenever boost filesystem gets instantiated, it tries to get
the default locale via the invocation std::locale("") which seems to
call the constructor for codecvt.  If I was able to replace
std::locale("") with std::locale(), then I think my problem would be
solved because then this would force my customer's to set their locale
via std::locale::global(...) and let them handle the issue :)

Thanks,
J
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.