[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SystemPreferences app and NSLocale

From: Edwin Ancaer
Subject: SystemPreferences app and NSLocale
Date: Sat, 12 Aug 2017 07:55:06 +0200

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];
  NSLog(@"The current locale is %@", current_locale);
  NSLocale *au_current_locale = [NSLocale autoupdatingCurrentLocale];
  NSLog(@"The autoupdating current locale is %@", au_current_locale);
  NSLocale *system_Locale = [NSLocale systemLocale];
  NSLog(@"The system locale is %@", system_Locale);

The result I  get is:

2017-08-12 05:47:51.500 TM1[1432:100188] The current locale is en_US_POSIX
2017-08-12 05:47:51.505 TM1[1432:100188] The autoupdating current locale is en_US_POSIX
2017-08-12 05:47:51.515 TM1[1432:100188] The system locale is en_US_POSIX

What am I missing here?

I'm using FreeBSD 11.0, and build GNUstep  and the GNUstep applications from the ports system.

Kind regards,

Edwin Ancaer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]