I want Gnuplot to use the norwegian name of the days (%a) as xtics. In Linux I can be done by usingset locale 'nb_NO.utf-8'
.
But in Windows 10, when tryingset locale 'Norwegian Bokmål_Norway.1252'
, this results in the errorLocale not available
.
The output of show locale
is:
gnuplot LC_CTYPE Norwegian Bokmål_Norway.1252
gnuplot encoding utf8
gnuplot LC_TIME Norwegian Bokmål_Norway.1252
gnuplot LC_NUMERIC C
I suppose the error is due to the character å (unocode 00E5, Latin Small Letter A with ring). How can I set correct locale in Windows?
CodePudding user response:
That's what I get with the following code. Tested with gnuplot 5.4 under Win10. I hope it will solve your problem.
Code:
### set locale to different languages
reset session
set locale "English"
do for [i=0:6] { print strftime("%A",time(0) 3600*24*i) }
set locale "French"
do for [i=0:6] { print strftime("%A",time(0) 3600*24*i) }
set locale "Norwegian"
do for [i=0:6] { print strftime("%A",time(0) 3600*24*i) }
### end of code
Result:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
lundi
mardi
mercredi
jeudi
vendredi
samedi
dimanche
mandag
tirsdag
onsdag
torsdag
fredag
lørdag
søndag