bug-bash
[Top][All Lists]
Advanced

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

Problem with unicode and bash line re-edit.


From: Linda Walsh
Subject: Problem with unicode and bash line re-edit.
Date: Mon, 07 Sep 2009 04:27:36 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Lightning/0.9 Thunderbird/2.0.0.22 ThunderBrowse/3.2.6.4 Mnenhy/0.7.6.666

I was wanting to enter a colon in a file name that had to be readable on
both Unix and Dos.

Unicode has a 'display' colon: At U+FF1A, which works find -- I can enter it
in bash in linux -- it displays as a colon on linux and on windows as part
of the filename.

I can either cut/paste from the Win Charmap, OR hold down ALT and type 65306
on the number pad.  There may be a way to enter the hex directly, but I
forget the method off hand.

Anyway, the problem comes on line-re-editing.  Even though the displayed
character takes up 1 character just as a colon would, re-editing the line to
change it is really a mess.  It would be a WAG, but maybe bash is counting
bytes and using those as 'logical character widths), when in this case, it
needs to do UTF-8 decoding when the terminal (and languages) are set to
UTF-8, and only move the cursor by the appropriate width.

Any plans to move toward UTF-8 support, since that seems the way the web is
going?

Thanks,
-linda





reply via email to

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