Messages in this thread | | | Date | Thu, 01 May 2008 15:46:29 +0600 | From | "Alexander E. Patrakov" <> | Subject | Re: [2.6 patch] UTF-8 fixes in comments |
| |
Willy Tarreau wrote: > In my opinion, the problem is that when I press "é", the system sends > two chars to the bash, which itself sends two chars to the terminal, > which only displays one and moves the cursor one step ahead. Then, > pressing backspace once sends one backspace all along, resulting in > the terminal blanking one displayed char, but the shell not being > aware that only half of it was removed. But if you look at how > control chars are handled, if you display ^H then press backspace, > you remove all of it. It's the terminal which adjusts the position > depending on the character length.
export LANG=en_US.UTF-8 (i.e., inform the userspace that you are using UTF-8), unset LC_CTYPE and unset LC_ALL (so that they don't override $LANG), and problem solved.
-- Alexander E. Patrakov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |