|
From: Hans-Bernhard B. <br...@ph...> - 2008-02-13 00:05:33
|
Hello, guys,
I received mail from a German user of gnuplot on Win32 who observes
strange behaviour, apparently from 'set decimalsign locale' being set to
German:
Version:
G N U P L O T
Version 4.2 patchlevel 2
last modified 31 Aug 2007
System: MS-Windows 32 bit
[Condensed] script to reproduce:
set datafile separator ';'
set decimalsign locale 'german'
p1 = -22.5
p2 = 52.5
p3 = 30
p(x)=p1*(x-2001)**2+p2*(x-2001)+p3
print p(2005)
print p(2005.5)
Output from the two print commands is:
-120.0
-189,375
Note that it's -120.0, with a '.', instead of the requested and expected
',', while the output of -189,375 worked as expected. Does this ring a
bell with anyone?
I would have checked it against current CVS gnuplot, but the version
built by OpenWatcom doesn't appear to know any German locales ---
they're all rejected:
gnuplot> set decimalsign locale 'german'
^
Could not find requested locale
|