Oliver Kiddle, le Sat 26 Apr 2008 18:32:39 +0200, a écrit :
> Samuel Thibault wrote:
> > Clint Adams, le Sat 26 Apr 2008 16:05:48 +0100, a écrit :
> > > Having locale-based (and multibyte) word separators sounds like a 
> > > nightmare
> > > to me, but maybe someone has some ideas.
> > 
> > iswspace()
> 
> The characters used for word splitting are contained in the IFS
> variable. So you can add character 0x82 to that and in a suitable
> locale, that will work.

Err, no.
(I'm using ISO-8859-15)

€ echo $IFS | hexdump
0000000  20 09 a0 0a 00 0a                              
€ echo a | grep a
zsh: command not found:  grep

> In a UTF-8 locale, you might have problems; I
> don't know whether multi-byte chars are supported in IFS.

Then I may want to clone the bug :)

> For what it's worth, I don't think it is right for non-breaking spaces
> to be in IFS by default. I've seen people use them precisely because
> they are not.

Ok, I'd be fine with deciding myself to do it.

Samuel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to