Re: string-ports issue on Windows

2019-05-26 Thread Mark H Weaver
Hi Christopher, Christopher Lam writes: > Addendum - wish to confirm if guile bug (guile-2.2 on Windows): > - set locale to non-Anglo so that (setlocale LC_ALL) returns > "French_France.1252" > - call (strftime "%B" 400) - that's 4x10^6 -- this should return > "février 1970" > > but the foll

Re: string-ports issue on Windows

2019-05-26 Thread Christopher Lam
Addendum - wish to confirm if guile bug (guile-2.2 on Windows): - set locale to non-Anglo so that (setlocale LC_ALL) returns "French_France.1252" - call (strftime "%B" 400) - that's 4x10^6 -- this should return "février 1970" but the following error arises: Throw to key `decoding-error' with a

Re: string-ports issue on Windows

2019-05-13 Thread Christopher Lam
Hi Mark Final update - first, we've reused your efficient substring-replace function in https://github.com/Gnucash/gnucash/commit/7d15e6e4e727c87fb4a501e924c4ae02276e508d from a few years ago. Second, the email thread https://lists.gnu.org/archive/html/guile-devel/2014-03/msg00060.html confirmed a

Re: string-ports issue on Windows

2019-04-19 Thread Christopher Lam
Hi, The patch *does* work and handles unicode properly :) There are unintended consequences however, whereby other (probably C-based) string-code in Windows are now reading the lira-symbol into unexpected chars (eg lira-symbol -> "â‚°" i.e. #xe2 #x201a #xba) but this is now outside the scope of thi

Re: string-ports issue on Windows

2019-04-18 Thread Mark H Weaver
Hi again, Earlier, I wrote: > Christopher Lam writes: > >> Hi Mark >> Thank you so much for looking into this. >> I'm reviewing the GnuCash for Windows package (v3.5 released April 2019) >> which contains the following libraries: >> - guile 2.0.14 > > Ah, for some reason I thought you were using

Re: string-ports issue on Windows

2019-04-18 Thread Mark H Weaver
Hi Christopher, Christopher Lam writes: > Hi Mark > Thank you so much for looking into this. > I'm reviewing the GnuCash for Windows package (v3.5 released April 2019) > which contains the following libraries: > - guile 2.0.14 Ah, for some reason I thought you were using Guile 2.2. That explai

Re: string-ports issue on Windows

2019-04-18 Thread Eli Zaretskii
> From: Christopher Lam > Date: Thu, 18 Apr 2019 16:22:24 + > Cc: guile-user > > scheme@(guile-user)> (setlocale LC_ALL "") > $15 = "English_Australia.1252" > scheme@(guile-user)> (locale-encoding) > $16 = "CP1252" > scheme@(guile-user)> (setlocale LC_ALL "C") > $17 = "C" > scheme@(guile-use

Re: string-ports issue on Windows

2019-04-18 Thread Christopher Lam
Hi Mark Thank you so much for looking into this. I'm reviewing the GnuCash for Windows package (v3.5 released April 2019) which contains the following libraries: - guile 2.0.14 - libunistring 0.9.7.0 - libiconv 1.15.0.0 I've managed to run the included guile.exe -- copied the libraries to %temp%\li

Re: string-ports issue on Windows

2019-04-17 Thread Mark H Weaver
Hi Christopher, Christopher Lam writes: > Bearing in mind majority of strings code in GnuCash handle Unicode just > fine. However, there are some currencies e.g.TYR > https://en.wikipedia.org/wiki/Turkish_lira need extended Unicode and are > misprinted as ? in the reports. I looked into Turkish

Re: string-ports issue on Windows

2019-04-16 Thread Christopher Lam
Thank you Mark The problem is rather obscure and may have been fixed in 2.2. I've taken the reins of handling the guile code in GnuCash. For various reasons I can't fathom, the Windows build includes Guile 2.0.14 rather than Guile-2.2. I've checked NEWS and there was change in SRFI-6 string-ports

Re: string-ports issue on Windows

2019-04-16 Thread Mark H Weaver
Hi Christopher, Christopher Lam writes: > I'm struggling with string-ports on Windows. > > Last para of > https://www.gnu.org/software/guile/manual/html_node/String-Ports.html > "With string ports, the port-encoding is treated differently than other > types of ports. When string ports are create

Re: string-ports issue on Windows

2019-04-16 Thread Mark H Weaver
Hi, Eli Zaretskii writes: >> From: Christopher Lam >> Date: Tue, 16 Apr 2019 04:13:14 + >> >> I'm struggling with string-ports on Windows. > > Which version of Guile are you using, and where/how did you obtain the > Windows binary? > >> Last para of >> https://www.gnu.org/software/guile/ma

Re: string-ports issue on Windows

2019-04-16 Thread Eli Zaretskii
> From: Christopher Lam > Date: Tue, 16 Apr 2019 04:13:14 + > > I'm struggling with string-ports on Windows. Which version of Guile are you using, and where/how did you obtain the Windows binary? > Last para of > https://www.gnu.org/software/guile/manual/html_node/String-Ports.html > "With

string-ports issue on Windows

2019-04-15 Thread Christopher Lam
Dear All I'm struggling with string-ports on Windows. Last para of https://www.gnu.org/software/guile/manual/html_node/String-Ports.html "With string ports, the port-encoding is treated differently than other types of ports. When string ports are created, they do not inherit a character encoding