bug-bash
[Top][All Lists]
Advanced

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

Multibyte character support from LANG variable in .bashrc


From: ocheron
Subject: Multibyte character support from LANG variable in .bashrc
Date: Tue, 9 Dec 2003 17:43:56 +0100 (CET)

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: darwin7.0.0
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' 
-DCONF_OSTYPE='darwin7.0.0' -DCONF_MACHTYPE='powerpc-apple-darwin7.0.0' 
-DCONF_VENDOR='apple' -DSHELL -DHAVE_CONFIG_H -DMACOSX  -I.  -I. -I./include 
-I./lib  -g -O2
uname output: Darwin xen 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24 15:48:39 
PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC  Power Macintosh powerpc
Machine Type: powerpc-apple-darwin7.0.0

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:

If I invoke bash with the LANG environment variable set to
`fr_FR.UTF-8', then bash correctly works with my UTF-8 terminal, for
example a doublebyte character only need one backspace to be deleted.

If LANG is set interactively in the shell then this works correctly as
well.

However if the variable is set from a .bashrc or .bash_profile script,
then the setting is not recognized (a doublebyte character needs two
backspaces to be deleted and the cursor is at the wrong position).

Repeat-By:

1. Add LANG=fr_FR.UTF-8 to .bashrc or .bash_profile

2. Make sure LANG is not set in the environment and start bash

3. Check LANG has been set (echo $LANG)

4. Type a doublebyte character and hit backspace twice to delete it

5. Set LANG=fr_FR.UTF-8 interactively

6. Type the same doublebyte character and hit backspace only once to
delete it




reply via email to

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