[Q] support for the OS X keychain

Aidan Kehoe kehoea at parhasard.net
Thu Jan 3 14:12:23 EST 2008


 Ar an ceathrú lá de mí Eanair, scríobh Stephen J. Turnbull: 

 > Aidan Kehoe writes:
 > 
 >  >  > I couldn't figure out how to convert the string with macros of 21.4 yet
 >  >  > --- maybe one of the 21.4 developers could give me some advice?
 >  > 
 >  > UTF-8 is not available as a coding system by default on 21.4. One
 >  > awkward way to work around that would be to check for non-ASCII in the
 >  > strings, and only do the translation if a) there are non-ASCII
 >  > characters and b) Ffind_coding_system (intern ("utf-8")) gives
 >  > non-nil.
 > 
 > Does this actually work correctly?  That is, HFS+ will use a NK?FD
 > string for the file name.  I think the file system code will normalize
 > if you pass it any valid UTF-8 string (this needs to be checked), 

It does.

 > but XEmacs will not be able to round-trip. We should check that that will
 > not cause problems.

It will cause problems; it’s Mule-UCS, its mapping is incomplete. See every
third message Uwe Brauer has been sending to -beta.

On reflection, though, the 21.4 init code is not sensible in this respect,
and file-name-coding-system will not normally be anything other than binary. 
It, or the file-name coding system alias, should be used, not utf-8.

-- 
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?



More information about the XEmacs-Patches mailing list