help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [h-e-w] Accents in environment variables - HOME


From: sherkin.freesbee
Subject: Re[2]: [h-e-w] Accents in environment variables - HOME
Date: Sat, 10 Apr 2004 18:35:49 +0200

Hello Benjamin,

Saturday, April 10, 2004, 4:51:29 PM, you wrote:

BR> Hi Michelle,


BR> Benjamin Riefenstahl wrote:
>> BR> What is the value of [locale-coding-system]?

BR> "sherkin.freesbee" <address@hidden> writes:
>> locale-coding-system
>> iso-latin-1
>>
>> BR> And to what does this expression evaluate:
>> BR>   (decode-coding-string (getenv "HOME") locale-coding-system)
>> (decode-coding-string (getenv "HOME") locale-coding-system)
>> "C:\\Documents and Settings\\Propri\202taire"

BR> Some testing gives this:

BR> (decode-coding-string
BR>  "C:\\Documents and Settings\\Propri\202taire"
BR>  'cp437)
BR> "C:\\Documents and Settings\\PropriƩtaire"

BR> IOW, your environment seems to be in Windows' OEM encoding.  So do
BR> things work if you set locale-coding-system to that?  You may have to
BR> execute (codepage-setup 437), before you can use 'cp437.

That's right!
I suppose I should put this in site-start.el to have the right
profile loaded:

(codepage-setup 437)
(setq locale-coding-system 'cp437)


But, as a first test, I still have:
(codepage-setup 437)
cp437

(decode-coding-string
 "C:\\Documents and Settings\\Propri\202taire"
 'cp437)

"C:\\Documents and Settings\\PropriƩtaire"

(setq locale-coding-system 'cp437)
cp437
(getenv "HOME")
"C:\\Documents and Settings\\Propri\202taire"


-- 
Best regards,
 sherkin.freesbee                            mailto:address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]