Gtk::Application::create() calls gtk_init(), which calls
setlocale(LC_ALL, ""). The call to setlocale() affects the sort
order of Glib::ustring. Such strings are compared by calls to
g_utf8_collate(). I don't understand why a period (.) is ignored
when strings are sorted according to the rules of the
user-specified locale (which in my case is sv_SE.UTF-8). You can avoid the strange sort order by using a std::map<std::string, Glib::ustring> instead of a std::map<Glib::ustring, Glib::ustring>, provided all your map's keys contain only ascii characters. Kjell Den 2015-04-09 12:56, Glus Xof
skrev:
|