[darcs-users] [darcs-devel] [patch639] Use utf-8 charset for darcs send in case of non-ascii ...
Gabriel Kerneis
kerneis at pps.jussieu.fr
Wed Jul 6 11:17:51 UTC 2011
On Wed, Jul 06, 2011 at 03:38:03AM +0900, Stephen J. Turnbull wrote:
> Gabriel Kerneis writes:
>
> > And please, don't ask me to take the locale into account.
>
> You should at least warn if the locale is set and isn't UTF-8.
Which means adding a bunch of C code to fetch it. It would probably not be too
hard to implement (copying the code from the encoding package [1]), but is it
really worth the trouble of having IO striking back right in the middle of a so
beautiful piece of pure code?
[1]: http://hackage.haskell.org/package/encoding
Locales should really be dead now (at least wrt. encoding), that's why UTF-8
has been designed after all.
Best,
--
Gabriel
More information about the darcs-users
mailing list