Make non-ASCII strings in ui files work
Our extractor tool was not calling setlocale(), thus it only produced output in the C locale, ie ASCII. Oops.
This commit is contained in:
@ -15,6 +15,7 @@
|
|||||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -143,6 +144,8 @@ main (int argc, char *argv[])
|
|||||||
GMarkupParseContext *context;
|
GMarkupParseContext *context;
|
||||||
ParserData data;
|
ParserData data;
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
g_printerr ("Expect a filename\n");
|
g_printerr ("Expect a filename\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user