[Top][All Lists]

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

Re: accents

From: Greg Wooledge
Subject: Re: accents
Date: Mon, 9 May 2011 14:21:04 -0400
User-agent: Mutt/

On Mon, May 09, 2011 at 04:46:14PM +0200, Thomas De Contes wrote:
> Description:
> 1
> when i do
> PS1="&# $PS1"
> then I have problems since there is some accents in my command lines :

What is the value of PS1 before you prepend ampersand-hash-space to it?

What does the ampersand-hash-space have to do with the problem?

> i heard that you had the problem without having to do
> PS1="&# $PS1"
> and that you corrected it in that case

Who's "you"?  Aren't you, Thomas, the person having the problem?

> 2
> without doing
> PS1="&# $PS1"
> i don't have problem when there is just one accent on a small line, but i 
> have a lot of them when the command line is larger than the terminal and is 
> displayed on several lines in the terminal

At first glance this looks like the classic "I have colors in my prompt
and I forgot to put \[ \] in the right places", but it's hard to be sure
because the description is so confusing.

> Repeat-By:
> make a file and give it a name containing an accent

In what locale?  UTF-8, ISO-8859-1, or what?  Is the accented character
a single-byte character, or a multi-byte character, in your locale?

> 1
> - execute
> PS1="&# $PS1"
> - drag & drop the file with the accent
> - use "top arrow" and "bottom arrow" to move in the history :
> at each time you move on the line containing an accent, it eats one character

I did this in an ISO-8859-1 locale and did not reproduce the problem.

Then I did it on a UTF-8 locale (differet computer) and also did not
reproduce the problem.  Granted, I'm controlling the UTF-8 X session
from the mouse and keyboard that are on the ISO-8859-1 machine, but
od -t x1 tells me that the file name I created on the UTF-8 machine
has a multi-byte character in it, so I'm not sure what is required
to reproduce the issue.

reply via email to

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