Re: HS_ENCODING in localeEncoding

2020-02-05 Thread Matthias Kilian
Hi Greg, On Tue, Feb 04, 2020 at 09:28:20PM -0800, Greg Steuck wrote: > On Tue, Feb 4, 2020 at 10:38 AM Greg Steuck wrote: > > So far I confirmed that: > > * getLocaleEncoding is correctly steered by LC_ALL > > * utf8 characters are accepted by ghci and correctly parsed into > > String literal

Re: HS_ENCODING in localeEncoding

2020-02-04 Thread Greg Steuck
On Tue, Feb 4, 2020 at 10:38 AM Greg Steuck wrote: > So far I confirmed that: > * getLocaleEncoding is correctly steered by LC_ALL > * utf8 characters are accepted by ghci and correctly parsed into > String literals > * utf8 characters are printed back correctly > * utf8 characters become

Re: HS_ENCODING in localeEncoding

2020-02-04 Thread Greg Steuck
Hi Ingo, On Mon, Feb 3, 2020 at 6:31 AM Ingo Schwarze wrote: > The function locale_charset() appears to be part of the converters/libiconv > package, but it appears to be totally undocumented. I failed to > find any documentation whatsoever: neither in the package nor even > with Google on the w

Re: HS_ENCODING in localeEncoding

2020-02-04 Thread Greg Steuck
Hi Matthias, On Mon, Feb 3, 2020 at 3:31 PM Matthias Kilian wrote: > IIRC, the complaint (from that time 10 years ago) was that ghci > crached at the same moment you enter a character not supported by > whatever LC_CTYPE contains. > > So, yes, if you have the time to rebuild without that patch a

Re: HS_ENCODING in localeEncoding

2020-02-03 Thread Matthias Kilian
Hi Greg, On Sun, Feb 02, 2020 at 10:00:06PM -0800, Greg Steuck wrote: > Do you believe lang/ghc/patches/patch-libraries_base_cbits_PrelIOUtils_c > is still relevant? It's probably outdated junk. What a mess ;-) > I ran some test programs and both locale_charset() and > nl_langinfo(CODESET) yield

Re: HS_ENCODING in localeEncoding

2020-02-03 Thread Ingo Schwarze
Hi Greg, take this with a shovel of salt as i didn't test the port or anything with Haskell (and i'm unlikely to). So this is purely from code inspection. Greg Steuck wrote on Sun, Feb 02, 2020 at 10:00:06PM -0800: > Do you believe lang/ghc/patches/patch-libraries_base_cbits_PrelIOUtils_c > is

HS_ENCODING in localeEncoding

2020-02-02 Thread Greg Steuck
Hi Matthias, Do you believe lang/ghc/patches/patch-libraries_base_cbits_PrelIOUtils_c is still relevant? I ran some test programs and both locale_charset() and nl_langinfo(CODESET) yield sensible results (at least for UTF8). The history of the patch seems to go back approximately 10 years, so may