search for: french_belgium

Displaying 2 results from an estimated 2 matches for "french_belgium".

2017 Jun 23
2
LC_TIME not set correctly by Sys.setlocale() ?
...ate formatting. Although R reports that LC_TIME is changed to the new setting after use of Sys.setlocale(), as.Date() still uses the old settings. The only way to update this is by specifically using LC_TIME. Is this a bug or am I overlooking something? Example: > Sys.setlocale(locale = "French_Belgium") [1] "LC_COLLATE=French_Belgium.1252;LC_CTYPE=French_Belgium.1252;LC_MONETARY=French_Belgium.1252;LC_NUMERIC=C;LC_TIME=French_Belgium.1252" > date <- "Dec-11" > as.Date(date, format = "%b-%d") [1] NA # expected > Sys.setlocale(locale = "Englis...
2017 Jun 23
0
LC_TIME not set correctly by Sys.setlocale() ?
...ptime (not really as.Date, and not taken from LC_TIME) is then reset. Since Windows does not have a usable strptime C function, a substitute is used and its handing of non-English names is not done through the OS's locale mechanism. > Example: > >> Sys.setlocale(locale = "French_Belgium") > [1] > "LC_COLLATE=French_Belgium.1252;LC_CTYPE=French_Belgium.1252;LC_MONETARY=French_Belgium.1252;LC_NUMERIC=C;LC_TIME=French_Belgium.1252" > >> date <- "Dec-11" > >> as.Date(date, format = "%b-%d") > [1] NA # expected > &g...