Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154062 - app-shells/bash-3.2_p2-r1 and LC_TIME="sv_SE.utf8" breaks date/time in PS1
Summary: app-shells/bash-3.2_p2-r1 and LC_TIME="sv_SE.utf8" breaks date/time in PS1
Status: RESOLVED DUPLICATE of bug 155369
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-04 11:54 UTC by Togge
Modified: 2008-05-06 15:11 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Togge 2006-11-04 11:54:53 UTC
Under bash-3.2_p2-r1 (other versions as well?) a \d, \t, or \D{...} in PS1 makes the prompt display first char at col 20 (about) and char 2 at col 1 if LC_TIME is "sv_SE.utf8". It works with LC_TIME="sv_SE" and LC_TIME="en_US.utf8"
Ex (input 123456):

$23456                  1

------
LANG="en_US.utf-8"
LC_ADDRESS="sv_SE.utf-8"
LC_COLLATE="sv_SE.utf-8"
LC_CTYPE="sv_SE.utf-8"
LC_IDENTIFICATION="sv_SE.utf-8"
LC_MEASUREMENT="sv_SE.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_MONETARY="sv_SE.utf-8"
LC_NAME="sv_SE.utf-8"
LC_NUMERIC="sv_SE.utf8"
LC_PAPER="sv_SE.utf-8"
LC_TELEPHONE="sv_SE.utf-8"
LC_TIME="sv_SE.utf-8"
Comment 1 SpanKY gentoo-dev 2006-11-05 00:49:43 UTC
can you actually check bash-3.1 rather than guessing
Comment 2 Togge 2006-11-05 01:37:17 UTC
Sorry if I misled you. Bash-3.1 works as expected, what I meant was I'm not sure about other 3.2 versions.
Comment 3 SpanKY gentoo-dev 2006-12-16 03:49:22 UTC
bash-3.2_p9 should work
Comment 4 Togge 2006-12-23 13:33:54 UTC
Sorry to  say but this is not the case :(
It breaks when a non ASCII char is used in the day name (Monday, Saturday and Sunday - M
Comment 5 Togge 2006-12-23 13:33:54 UTC
Sorry to  say but this is not the case :(
It breaks when a non ASCII char is used in the day name (Monday, Saturday and Sunday - Måndag, Lördag and Söndag)
Comment 6 Pongten 2007-01-18 10:26:55 UTC
Got a similar problem.

In fact, LC is fr_BE.UTF-8 and when accessing a directory with accents in his name, the first char is misplaced.

The problem comes when there is a new color definition after the \$ sequence in the PS1 definition.  If the last char sequence in PS1 is \$, it works great.

Bash version is 3.2_p9-r1 
Comment 7 Non_E 2007-01-30 12:15:39 UTC
*added to cc*
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2007-03-11 17:33:42 UTC
patch in bug #155369 fixes this problem too.

*** This bug has been marked as a duplicate of bug 155369 ***