Re: terminal status [Re: wcwidth and locale]

2007-04-24 Thread Rich Felker
On Mon, Apr 23, 2007 at 12:16:29AM +0800, Abel Cheung wrote: > On 4/17/07, Rich Felker <[EMAIL PROTECTED]> 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

Re: terminal status [Re: wcwidth and locale]

2007-04-23 Thread Roger Leigh
Egmont Koblinger <[EMAIL PROTECTED]> writes: > On Mon, Apr 23, 2007 at 12:16:29AM +0800, Abel Cheung wrote: > >> Wait. Quick question: how much should '\b' backstep when wide characters are >> encountered? > > It should move the cursor one single-width cell to the left. It has already > been discu

Re: terminal status [Re: wcwidth and locale]

2007-04-23 Thread Egmont Koblinger
On Mon, Apr 23, 2007 at 12:16:29AM +0800, Abel Cheung wrote: > Wait. Quick question: how much should '\b' backstep when wide characters are > encountered? It should move the cursor one single-width cell to the left. It has already been discussed on this list, see here: http://mail.nl.linux.org/li

Re: terminal status [Re: wcwidth and locale]

2007-04-22 Thread Abel Cheung
On 4/17/07, Rich Felker <[EMAIL PROTECTED]> 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'? Abe

Re: terminal status [Re: wcwidth and locale]

2007-04-17 Thread Marcin 'Qrczak' Kowalczyk
Dnia 17-04-2007, wto o godzinie 10:58 -0400, Rich Felker napisał(a): > What is the output of: > echo -e '日本語\b\bhello' > > It should be: “日本hello” and not “日hello”. “日本hello” on gnome-terminal, konsole, xterm, and urxvt. -- __("< Marcin Kowalczyk \__/ [EMAIL PROTECTED]

Re: terminal status [Re: wcwidth and locale]

2007-04-17 Thread Rich Felker
On Tue, Apr 17, 2007 at 11:08:44AM +0200, Egmont Koblinger wrote: > On Mon, Apr 16, 2007 at 05:13:07PM -0400, Rich Felker wrote: > > > Konsole and Xfce terminal: no support for nonspacing characters; > > unsure about whether cjk wide characters are right. > > CJK is fine in them AFAIK. What is t

Re: terminal status [Re: wcwidth and locale]

2007-04-17 Thread Egmont Koblinger
On Mon, Apr 16, 2007 at 05:13:07PM -0400, Rich Felker wrote: > Konsole and Xfce terminal: no support for nonspacing characters; > unsure about whether cjk wide characters are right. CJK is fine in them AFAIK. > Gnome Terminal: I assume it's the same since Xfce uses the same > widget. Please corr

terminal status [Re: wcwidth and locale]

2007-04-16 Thread Rich Felker
On Tue, Apr 17, 2007 at 02:04:32AM +0800, Abel Cheung wrote: > >This is only an issue on character-cell devices which use wcwidth. > > I'm exactly talking about those apps, like terminals. Given how utterly abysmal current terminals' Unicode support is, this seems like a relatively minor issue. I