Re: [Plplot-devel] Tcl issues solved on Windows!

2011-01-04 Thread Arjen Markus
Hi Alan, that sounds like a good plan. An alternative would be to use hexadecimal escape codes (\u...) instead of non-ASCII7 characters in the source code, but that has the drawback that you can not view the UNICODE character anymore. I will work on this - earliest commit time will be tomorro

Re: [Plplot-devel] Tcl issues solved on Windows!

2011-01-04 Thread Alan W. Irwin
On 2010-12-30 09:07+0100 Arjen Markus wrote: > Hello, > > I have found an easy way to solve the UTF-8 problem, > source -econding utf-8 (not cp1252). But it works > only for Tcl 8.5, as the [source] command was extended > with that option then. Hi Arjen: It appears from what you have said that T

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-30 Thread Arjen Markus
Hello, I have found an easy way to solve the UTF-8 problem, source -econding utf-8 (not cp1252). But it works only for Tcl 8.5, as the [source] command was extended with that option then. I will either have to see about an alternative or make sure this option is not used for Tcl 8.4 and older. R

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-28 Thread Arjen Markus
Hi Alan, Tcl has two options to do what you suggest: - Set the system encoding to cp1252 - Source the file using -encoding cp1252 (A third is to adapt the C side of the Plplot API.) I will experiment with both. Regards, Arjen On 2010-12-24 22:20, Alan W. Irwin wrote: > On 2010-12-24 13:05+010

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-24 Thread Alan W. Irwin
On 2010-12-24 13:05+0100 Arjen Markus wrote: > Hi Alan, > > On 2010-12-21 20:03, Alan W. Irwin wrote: > >> >> I will stop now and not comment more on the Tcl case, because I think >> it is essential to focus on C for now and one of the cairo or qt >> devices. >> >> Of course, as I have stated be

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-24 Thread Arjen Markus
Hi Alan, On 2010-12-21 20:03, Alan W. Irwin wrote: > > I will stop now and not comment more on the Tcl case, because I think > it is essential to focus on C for now and one of the cairo or qt > devices. > > Of course, as I have stated before the psc device driver is not useful > for diagnosis o

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-22 Thread Arjen Markus
Hi Alan, On 2010-12-21 20:03, Alan W. Irwin wrote: > > I agree it is highly confusing and difficult to describe clearly. > > When I look at the Peace words in the actual files x24.tcl (and > x24c.c) with the system tools available to me (the emacs editor in my > case), it is clear the bytes in

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-21 Thread Alan W. Irwin
On 2010-12-21 11:21+0100 Arjen Markus wrote: > Hi Alan, > > I think you misunderstand the issue. The problem is that a file > consists of bytes. In the old days, each byte corresponded to a > single character, but with the advent of UTF-8 and the like a single > character may be represented by one

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-21 Thread Arjen Markus
Hello, here is an update on the FORTRAN 77 issue: The proposed solution (a compiler directive) does not work with the current gfortran compiler (issue http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47030). I can think of several workarounds: - Expand the argument list of plcon1 with the array tr

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-21 Thread Arjen Markus
Hi Alan, I think you misunderstand the issue. The problem is that a file consists of bytes. In the old days, each byte corresponded to a single character, but with the advent of UTF-8 and the like a single character may be represented by one, two or more bytes. What a program will do with these by

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-21 Thread Alan W. Irwin
On 2010-12-21 09:25+0100 Arjen Markus wrote: > I solved it, based on a suggestion from a fellow Tcler: we need to > pass the string to a Tcl_UtfToExternal*() function. The problem on > Windows is that the system encoding is _not_ UTF-8, but cp1252. > The strings in the source are therefore transla

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-21 Thread Arjen Markus
Hello all, On 2010-12-20 14:31, Arjen Markus wrote: > Hello all, > > On 2010-12-20 10:00, Arjen Markus wrote: > >> As for my test results with F77 example 9: it turns out that on the >> DLL side the array "tr" as stored in COMMON block /plplot/ is completely >> zero. That means the transformed c

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-21 Thread Arjen Markus
Hi Alan, On 2010-12-20 20:22, Alan W. Irwin wrote: > Hi Arjen: > > On 2010-12-20 10:00+0100 Arjen Markus wrote: > >> I think the [example 24] issue has to do with the character encodings. >> Tcl internally >> works with UTF-8 and on Windows the system encoding is cp1252 (at least >> on my machi

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-20 Thread Alan W. Irwin
Hi Arjen: On 2010-12-20 10:00+0100 Arjen Markus wrote: > I think the [example 24] issue has to do with the character encodings. Tcl > internally > works with UTF-8 and on Windows the system encoding is cp1252 (at least > on my machine). I have been experimenting with different encodings but > no

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-20 Thread Arjen Markus
Hello all, On 2010-12-20 10:00, Arjen Markus wrote: > > As for my test results with F77 example 9: it turns out that on the > DLL side the array "tr" as stored in COMMON block /plplot/ is completely > zero. That means the transformed coordinates are (0,0) for all points. > The question _why_ it

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-20 Thread Arjen Markus
Hi Alan, On 2010-12-17 08:28, Alan W. Irwin wrote: > In all cases the drive letter form works, but I didn't want to > complicate our C code to transform the leading slash form to drive > letter form for the Windows case. So I have worked around this issue > (revision 11374) by using a sed script

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-18 Thread Alan W. Irwin
I should have also said that PLplot users on the Windows platform can find directions for installing a Windows version of Tcl at http://www.miscdebris.net/plplot_wiki/index.php?title=Install_Tcl which is linked from http://www.miscdebris.net/plplot_wiki/index.php?title=Specifics_for_various_platfor

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-17 Thread Arjen Markus
Hi Alan, On 2010-12-17 08:28, Alan W. Irwin wrote: > In all cases the drive letter form works, but I didn't want to > complicate our C code to transform the leading slash form to drive > letter form for the Windows case. So I have worked around this issue > (revision 11374) by using a sed script

Re: [Plplot-devel] Tcl issues solved on Windows!

2010-12-17 Thread Arjen Markus
Hi Alan, that is wonderful! My guess as to the subtleties of the two forms of paths is that bash (or any shell) under MinGW/MSYS recognises the /z/path/to/file form and _converts_ it to z:\path\to\file (or one with /'s), to make sure that ordinary programs that assume the DOS form of absolute pat