[plt-scheme] Is UNICODE in the code taboo?

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Thu Dec 11 11:25:55 EST 2008

On Thu, Dec 11, 2008 at 5:10 PM, Robby Findler <robby at cs.uchicago.edu> wrote:
> On Thu, Dec 11, 2008 at 3:53 AM, Pierpaolo Bernardi <olopierpa at gmail.com> wrote:
>> Even better, put:
>>
>> (set-language-environment 'utf-8)
>>
>
> My C-h f on set-language-environment says that the input must be a
> string. Does that vary from version to version of Emacs?

My version says the same. However, the implementation of
set-language-environment
contains the following snippet:

   ...
  (if language-name
      (if (symbolp language-name)
	  (setq language-name (symbol-name language-name)))
   ...

so, using a string is the right thing, but a symbol is currently working too.
(I must have seen 'utf-8 used somewhere and copied it without checking
the documentation :)

Cheers
P.


Posted on the users mailing list.