Re: g++ Locale ?? correction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



COLLECT_GCC=C:\gnu\mingw-w64\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/gnu/mingw-w64/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/6.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
OS: Win 8.1
class myClass{
   private:
    std::locale current_locale;
   public:
    void setGlobalLocale(const std::string& str) {
current_locale.global(std::locale(str.data())); //<<Segmentation fault>>
    }
};


On 01-May-2017 11:57 PM, Papa wrote:
COLLECT_GCC=C:\gnu\mingw-w64\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/gnu/mingw-w64/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/6.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
OS: Win 8.1
class{
   private:
    std::locale current_locale;
   public:
    void setGlobalLocale(const std::string& str) {
        current_locale.global(std::locale(str)); //<< RunTimeError>>
    }
};

I'm writing a wrapper for std::locale, but right at start-up the first problem.
Why would this member function give me a Run Time Error?

Any help is much appreciated.


--
ArbolOne.ca
Using FireFox and Thunderbird.
ArbolOne is composed of a group of students and volunteers
dedicated to providing free services to charitable organizations.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux