Friday, November 28, 2014

Re: gnome-terminal, azerty keyboard, accents problem

On 26 November 2014, Tony Mechelynck <antoine.mechelynck@gmail.com>
wrote:
[...]
> At a shell command, I think you're out of luck. AFAICT bash translates
> as groups of two (or maybe more) characters anything above 0x7F.

Not really. If you're like most people and didn't re-compile bash
yourself, your shell is linked against readline, and it's readline that
messes with 8-bit processing. Now, what's actually going on is rather
complicated, but the bottom line is you probably want something like
this:

* set INPUTRC to point to a file, say /etc/inputrc
* put something like this in /etc/inputrc:

set input-meta On
set convert-meta Off
set output-meta On

[...]
> LANG=en_US.UTF-8
> LC_CTYPE=fr_BE.utf8
> LC_NUMERIC=en_GB.utf8
> LC_TIME=en_GB
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY=en_GB.utf8
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER=en_GB.utf8
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT=en_GB.utf8
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
[...]

On an unrelated note: you might want to set LC_COLLATE to C. This
will speed up things like grep(1) and sort(1) by an order of magnitude,
by telling them not to do anything smart about multi-byte characters.

/lcd

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment