|
Re: Unicode: Hugs vs GHC (again) was: Re: Some random newbie questions: msg#00087lang.haskell.cafe
Hi, Lennart Augustsson wrote: Simon Marlow wrote: I remember, it was in GHC. But any attempt to output Unicode characters using standard I/O functions always ended up outputting only low 8 bits. Has anything changed since then?
Which basically means that one with older or underconfigured system where they do not have permissions/technical possibilities to configure locales in the C library properly is out of luck...
Well, Hugs from CVS accepts source code in UTF-8 (I am not sure about locale-based conversion) - at least on my computer. Another thing, string literals may be in UTF-8 encoding, but Hugs would not accept function/type identifiers in Unicode (i. e. one could not name a type or a function in Russian for instance - their names muct be ASCII). I put an example of such a file in UTF-8 on my web-server: http://www.golubovsky.org/software/hugs-patch/testutf.hs
Or in Hugs, there is a shell script (awk indeed, just wrapped in a shell script) which parses the Unicode data file and produces a C file (also about 64k), and compact set of primitive functions independent from C library - src/unix/mkunitable and part of src/char.c in the Hugs source tree respectively. The reason I asked this question was: I am trying to understand, where is internationalization of Haskell compilers on their developers' list of priorities, and also how high is demand from users to have at least basic internationalization. Dimitry Golubovsky Middletown, CT |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Hugs vs GHC (again) was: Re: Some random newbiequestions: 00087, Malcolm Wallace |
|---|---|
| Next by Date: | Implementing computations with timeout: 00087, Einar Karttunen |
| Previous by Thread: | Re: Hugs vs GHC (again) was: Re: Some random newbiequestionsi: 00087, Lennart Augustsson |
| Next by Thread: | Re: Hugs vs GHC (again) was: Re: Some random newbiequestions: 00087, Malcolm Wallace |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |