[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 regression in bash version 4.2
From: |
Chet Ramey |
Subject: |
Re: UTF-8 regression in bash version 4.2 |
Date: |
Mon, 19 Mar 2012 20:12:58 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
On 3/18/12 1:26 PM, dennis.birkholz@rwth-aachen.de wrote:
> Bash Version: 4.2
> Patch Level: 24
> Release Status: release
>
> Description:
> Some UTF-8 multibyte characters are not printed correctly but UTF-8
> generally works as the "ä" in "März" (displayed via ls) works.
>
> Repeat-By:
> bash-4.2$ äää
> bash: $'\303\244\303\244\303\244': command not found
>
> bash-4.1$ äää
> bash: äää: command not found
Bash-4.2 changed the command-not-found message to attempt to make sure that
all the characters it displayed were printable, to catch weird characters
in filenames and prevent the display from messing up the terminal. That
code needed some more work to accommodate multibyte characters. Try the
attached patch and see if it fixes your problem; it's from the current
development sources.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
ansic-multibyte.patch
Description: Text Data