<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2956: Recipient address broken if containing Š character (UTF-8 code: 0xc5 0xA0)



#2956: Recipient address broken if containing Š character (UTF-8 code: 0xc5 
0xA0)

Comment (by Vincent Lefevre):

 {{{
 On 2007-09-14 13:17:39 -0000, Mutt wrote:
 >  My locale is en_US.UTF-8 on FreeBSD-stable
 >
 >  Indeed isspace(0xA0) returns 1 with UTF-8 locales.

 AFAIK, isspace() doesn't have any meaning in multibyte locales.

 Mutt uses isspace() and isprint() at various places. I don't think
 this is correct. Either Mutt needs to know what is a space or what
 is printable on ASCII strings, in which case it should use its own
 functions, or it needs to know such information on wide characters
 (as this is what should be used on non-ASCII strings), in which
 case it should use iswspace() and so on.
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2956#comment:>