This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/165] std::locale("") throws exception


------- Additional Comments From pere at hungry dot com  2004-05-17 19:41 -------
The example program work for me, when I have the locale available.
Here is a test run:

  # cat x.cc
  #include <sstream>
  #include <iostream>

  int main()
  {
    std::cout.imbue(std::locale(""));

    std::cout << 1.5 << std::endl;

    return 0;
  }
  # c++ x.cc
  # grep -v '#' /etc/locale.gen

  nb_NO ISO-8859-1

  # locale-gen
  Generating locales...
  nb_NO.ISO-8859-1... done
  Generation complete.
  # LANG=nb_NO ./a.out
  1,5
  # LANG=xx_YY ./a.out
  Aborted
  #

Based on this, I believe the code is correct, but the requested
locale is missing, so std::locale() has to fail.


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=165

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]