Comment 4 for bug 1507854

Revision history for this message
Piotr Jurkiewicz (piotrjurkiewicz) wrote :

This patch adds code which replaces '.utf8' with '.UTF-8' in locale names obtained from `locale -a` command before adding them to languages list.

It also replaces calls to g_strrstr(code, ".utf8") with calls to is_utf8(code) and moves that function a little bit upwards in order to make it available in update_languages(). Thanks to that the code will work even when glibc will change the output format of `locale -a` from .utf8 to .UTF-8.