------- Comment #8 from pcarlini at suse dot de 2007-04-02 00:53 ------- One last remark: when something having to do with named locales doesn't work, often I find myself checking whether corresponding "C" code works. In this case, if __format is wrong, which means apparently that _M_data->_M_date_format is wrong, I suggest preparing a plain "C" snippet equivalent to the code in config/locale/gnu/time_members.cc which sets _M_data->_M_date_format, something like:
loc = newlocale(1 << LC_ALL, __s, 0); union { char *__s; wchar_t *__w; } __u; __u.__s = __nl_langinfo_l(_NL_WD_FMT, loc); const wchar_t* pp = __u.__w; and inspect pp. Here it's fine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31413