svg file containing non ascii character with draw on windows
Subject: svg file containing non ascii character with draw on windows
From: Leo Butler
Date: Fri, 26 Apr 2013 22:23:01 GMT
>From mailnull Fri Apr 26 19:17:00 2013
Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of telefonica.net designates 213.4.138.21 as permitted sender) client-ip=213.4.138.21; envelope-from=biomates at telefonica.net; helo=telefonica.net;
From: Mario Rodriguez <biomates at telefonica.net>
Reply-To: <biomates at telefonica.net>
CC: <jfr.maurel at gmail.com>, <maxima at math.utexas.edu>
Content-Type: text/plain; charset="UTF-8"
Date: Fri, 26 Apr 2013 21:14:34 +0200
El vie, 26-04-2013 a las 16:11 +0000, Leo Butler escribi?:
> >From mailnull Fri Apr 26 12:45:31 2013
> Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of math.utexas.edu designates 146.6.25.7 as permitted sender) client-ip=146.6.25.7; envelope-from=maxima-bounces at math.utexas.edu; helo=ironclad.mail.utexas.edu;
> From: Mario Rodriguez <biomates at telefonica.net>
> Date: Fri, 26 Apr 2013 14:44:20 +0200
> CC: <maxima at math.utexas.edu>
> Reply-To: <biomates at telefonica.net>
> Content-Type: text/plain; charset="utf-8"
>
> El vie, 26-04-2013 a las 08:52 +0200, jfr.maurel at gmail.com escribi?:
> >
> > This does not seem to work for me.
>
> > s1:gr2d(file_name="c1",
> > user_preamble = "set encoding locale",
> > terminal='svg,
> > dimensions=[300,300],
> > font="Courier New",
> > font_size=10,
> > key="102Cr6",
> > explicit(f102Cr6(x),x,xmin,xmax),
> > key="90MnCrV8",
> > color="red",
> > explicit(f90MnCrV8(x),x,xmin,xmax),
> > title="durete = f(temp?rature de revenu)",
> > xlabel="Tr (degC)",
> > ylabel="durete (HRC)"
> > )$
> > draw(s1)$
>
>
> Since you are working on a Windows system, try
>
> user_preamble = "set encoding iso_8859_1"
>
> I am curious: maxima runs inside a cygwin shell on windows, doesn't
> it? Shouldn't the shell be setting this locale information correctly?
> or, in other words, can't the locale be set in the script that
> launches maxima?
>
> The reason that I ask is this: with linux+gcl and with my default
> locale of en_US.UTF8, the above command works fine without the
> user_preamble line.
>
It also works for me in es_ES.utf8 without the user_preamble.
I don't know if it's possible to set the locale in the windows script.
If not, we could force to include "set encoding iso_8859_1" in the
Gnuplot script, since Maxima (and package draw) knows when it's running
under windows.
When I look at src/maxima.bat it looks like the batch file does set a
bunch of variables based on the shell variables. Maybe someone who
knows the dos scripting language could look at this? Leo