|
From: | Stefan Monnier |
Subject: | Re: setenv -> locale-coding-system cannot handle ASCII?! |
Date: | Tue, 25 Feb 2003 21:11:19 -0500 |
> (if (multibyte-string-p variable) > (setq variable (encode-coding-string variable locale-coding-system))) > > multibyte-string-p is mandatory because encode-coding-string > will change the byte-sequence of `variable' even if it is > unibyte. > Ex. (encode-coding-string "\201\300" 'iso-latin-1) => "\300" I find this behavior annoying because it makes the emacs-mule encoding appear in a situation where it is not mentioned. I wish that (encode-coding-string "\201\300" 'iso-latin-1) and (encode-coding-string (string-to-multibyte "\201\300") 'iso-latin-1) returned the same value. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |