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

Re: terminal status [Re: wcwidth and locale]



On 4/17/07, Rich Felker <dalias@xxxxxxxxxx> wrote:
What is the output of:
echo -e '日本語\b\bhello'

Wait. Quick question: how much should '\b' backstep when wide characters are encountered?

- a whole wide character?
- a single byte?
- a half of wide character?

Which is considered 'correct'?

Abel


It should be: "日本hello" and not "日hello". I'm not sure which it does. Also try with explicit cursor positioning escapes.

(I'd appreciate it if you could try and report since I no longer have
them installed and forgot to check this while I did.)

Rich

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/




--
Abel Cheung   (GPG Key: 0xC67186FF)
Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF
--------------------------------------------------------------------
* GNOME Hong Kong - http://www.gnome.hk/
* Opensource Application Knowledge Assoc. - http://oaka.org/
* My own cave: http://me.abelcheung.org/
.)îÅDÅò-|ž‡ˊ{±¢v¥–W¯z[­Èb½èm¶Ÿÿ™¨¥žYbžìh®åŠ{±º×ü