How can I add locales to the emulator

On the SDK emulator I only have C and POSIX listed under locale -a the settings “Language and Region” Page just gives me an empty page.

I recall that in the past this was not the case so either I somehow borked the VM or something is broken, as I’m trying to debug something that depends on the locale being set properly I’m kind of stuck.

Any and all ideas are welcome, if need be I can reinstall the SDK.

I had just re-installed the sdk on a new machine and I also don’t see any settings on the “language and region” page. Maybe a bug in the sdk?

@vige ?

For me it’s causing all kinds of things that should be working with utf8 to try and work with ascii, a consequence of python locale not being set correctly.

1 Like

I’m quite sure different locales are not exactly a supported feature in the emulator. You can install them by installing package sailfish-locale though.

2 Likes

I wouldn’t call it so much a bug but a missing feature.

1 Like

Thanks will test!

I recall (maybe wrongfully) that in the past I wanted to test translations and was able to change the language of the emulator from there.

That also populated the settings panel!
Still have a bug somewhere that is trying to render utf8 into ascii with filenames :confused:

Persistence of the bug was because I had not changed the language from “English (US)” so it never applied & rebooted for a new language leaving the locale at C.UTF-8 after switching to a different language and switching back to English it’s set to en_US.UTF-8 and no more ascii futsing around :partying_face:

1 Like

@vige it seems like an oversight that sailfish-locale is not included in the SDK by default.

This is my new goto! I usually just whisper something in my beard, fix an obvious ‘bug’ and duck and run. Now I’ll chalk it up to a missing feature. Missing in action.

1 Like