Fwd: Re: SystemPreferences app and NSLocale

2017-08-22 Thread Edwin Ancaer
Stefan, Indeed, this solves my problems. The last difficulty whas that the displayed time was tho hours behind, but it took me some time to realize it was a problem with the settings of the clock in freebsd. And I have to admit I underestimated the complexity of date and time handling, with

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Stefan Bidigaray
Fred/Ricardo, I'd like to have a more thorough conversation about this, but I do not think this thread is the right place to do so. As Ricardo pointed out, it's not an uncomplicated issue, particular since, as I've hinted at, we have to think about compatibility with older language names (English,

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Fred Kiefer
Please have a look at the code inside of NSLocale. After selecting the locale all the different settings you are referring to will be extracted from that locale. And applications that rely on the Foundation functionality will respect these settings. At least for the case where ICU gets used.

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Riccardo Mottola
Hi, On 20/08/2017 16:58, Stefan Bidigaray wrote: Absolutely! What I was trying to say before is that I don't know how locales are set. I don't think SystemPreferences has a pane for locale, though, does it? That leads me to the other part of my question, which default sets this? well,

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Stefan Bidigaray
Absolutely! What I was trying to say before is that I don't know how locales are set. I don't think SystemPreferences has a pane for locale, though, does it? That leads me to the other part of my question, which default sets this? On Aug 20, 2017 10:51, "Riccardo Mottola"

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Riccardo Mottola
Hi, On 20/08/2017 16:32, Stefan Bidigaray wrote: If I understand your original question correctly, you are having issues seeing the locale. The time zone settings, however, do not set the locale. I'm not sure what which default does. in which Key should the time zone be set? The TimeZone

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Stefan Bidigaray
Honestly, I'm not sure how the old APIs works, and which aplicativa mande use of them. Since a while back, GNUstep has been using ICU for locale, and time and number formatting. So what you found in that file would be immaterial, at least to this conversation. If I understand your original

Re: SystemPreferences app and NSLocale

2017-08-20 Thread Riccardo Mottola
Hi, On 20/08/2017 06:52, Edwin Ancaer wrote: In it, I see the following list: 0 Europe/Paris 1 Europe/Busingen 1 Europe/Athens 0 Europe/Brussels 2 Europe/Zaporozhye 2 Europe/Moscow 1 Europe/Mariehamn 1 Europe/Prague 0 Europe/Guernsey 23 Europe/Lisbon 2 Europe/Volgograd 0 Europe/Luxembourg 1

Re: SystemPreferences app and NSLocale

2017-08-19 Thread Edwin Ancaer
Stefan, looking more into the locale stuff, I found a mention of the file zones, in /usr/local/lib/GNUstep/Libraries/gnustep-base/Versions/1.24/Resources/NSTimeZones. In it, I see the following list: 0 Europe/Paris 1 Europe/Busingen 1 Europe/Athens 0 Europe/Brussels 2 Europe/Zaporozhye 2

Re: SystemPreferences app and NSLocale

2017-08-19 Thread Stefan Bidigaray
Hi Edwin, I forgot to reply to all in my first email, so I'm adding the list again. I know at least Ricardo has some experience with this. I'm in the Eastern US, so the defaults always work out of the box, for me. The problem with Apple docs is that they have some defaults that we do not.

SystemPreferences app and NSLocale

2017-08-11 Thread Edwin Ancaer
Hello guys, I supposed that setting the Location in the Date and Time option of the SystemPreferences application would influence the settings for the NSLocale message. I set the location to Europe/Brussels, but when I execute this: NSLocale *current_locale = [NSLocale currentLocale];