bug-bash
[Top][All Lists]
Advanced

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

Re: {# - strange behavior


From: Chet Ramey
Subject: Re: {# - strange behavior
Date: Sun, 22 Feb 2009 14:27:05 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Antonio Macchi wrote:

> same problem with read...
> 
> 
> LC_CTYPE="en_US.UTF-8"
> 
> $ read -n1
> è
> 
> $ hexdump -C <(echo -n $REPLY)
> 00000000  c3                                                |.|
> 00000001
> 
> 
> 
> "è" is two chars.... but read stops at the first

I fixed read to understand multibyte characters for bash-4.0.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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