Issue 8930 - can't enter accented characters if LC_CTYPE is en_GB.utf8
Summary: can't enter accented characters if LC_CTYPE is en_GB.utf8
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Linux, all
: P5 (lowest) Trivial (vote)
Target Milestone: ---
Assignee: ulf.stroehler
QA Contact: issues@l10n
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-04 00:21 UTC by gee
Modified: 2013-08-07 15:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description gee 2002-11-04 00:21:11 UTC
I use the openoffice.org 1.0.1-5+woody debian package.
output of `locale`
LANG=POSIX
LC_CTYPE=en_GB.utf8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

If I start OOo like this, I can't type any accented characters.

If I unset LC_CTYPE, OOo will accept the accented input (ex. é) from me.

Since I need LC_CTYPE for other apps, I always have to disable it before
starting openoffice.
I think this setting shouldn't prevent entering these characters.
Comment 1 Dieter.Loeschky 2003-01-17 12:33:04 UTC
DL->CP: Would you please takeover?
Comment 2 christof.pintaske 2003-01-17 13:57:20 UTC
what happens if you set LANG to en_GB, too ? what about LC_ALL ? how
do you enter the chars (deadkey / compose key / keyboard support ...)
? do you use the xkeyboard extension ? 
Comment 3 gee 2003-01-20 14:04:25 UTC
>what happens if you set LANG to en_GB, too ?
> what about LC_ALL ?

If I set LANG and LC_ALL to en_GB.utf8, the problem persists.

gee@swordfish:~% locale
LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=en_GB.utf8
gee@swordfish:~% openoffice
I18N: X Window System doesn't support locale "en_GB.utf8"

Now I have noticed, that I can enter 2 characters that are not in
the latin-1 set, these are: o and u with double long accent (acute I think)
The rest do not work.

If I set everything to en_GB, I can type all the characters, and also
when starting openoffice, I do not get the X Window System doesn't support
locale message.

> how do you enter the chars (deadkey / compose key / keyboard
> support ...)?
> do you use the xkeyboard extension ?

I use KDE, and I think KDE uses Xkeys. I am running a kde app that let's
me choose between some keyboard layouts, like US, FR, HU

It is possible that my X setup misses something, but I have these locales
installed:
gee@swordfish:~% locale -a
C
POSIX
en_GB
en_GB.utf8
en_US
hu_HU

Other programs (like Xemacs) are complaining about the lack of en_GB.utf8
support in xlib too, but the only place where this causes a problem for me
is OOo.

In version 1.0 OpenOffice did not start at all, it crashed and dumped core.
Now it starts, only the special characters are not working.

Regards
Comment 4 christof.pintaske 2003-01-20 16:36:49 UTC
sorry, I will not handle this one soon. It is clearly a case of
misconfigured X Window system (X Window system does not support the
locales that your Operating System does) and OOo falls back the
portable "C" or "POSIX" locale where you are bound to 7 bit ASCII
characters. 

To get along for now, please add the lines
   LC_ALL=en_GB
   export LC_ALL
the the head of your "soffice" shell script that you find in the
program subdirectory of your OpenOffice.org installation

Comment 5 Unknown 2003-03-14 04:44:10 UTC
Um, I have the same problem (well, en_AU.utf8) here. All of my other
applications (gnome-terminal, gedit, ...) work properly in that locale.

I can't really see how it's an X problem if other apps are working OK.
Comment 6 christof.pintaske 2003-03-14 09:07:34 UTC
Your other X application don't run well in that locale since 'X Window
System doesn't support locale "en_GB.utf8"'. They definitively can't
run well in that locale. They run well in any locale they have
silently chosen as a replacement. 

Comment 7 gee 2003-03-16 13:53:36 UTC
You wrote:
It is clearly a case of misconfigured X Window system (X Window system does not support the locales that your Operating System 
does) and OOo falls back the portable "C" or "POSIX" locale where you are bound to 7 bit ASCII characters. 

My problem with this is that instead of "C" or "POSIX" OOo falls back to something bad.

If I set everything to "C" or "POSIX", all my accented characters work. I am not bound to 7 bit, I can write characters from 
latin-1 and latin-2.
If I set en_GB.utf8, and you do the fallback, I cannot write latin-1 characters, nut latin-2 (at least ? (o with double acute)) 
works.

Comment 8 Martin Hollmichel 2004-05-28 17:51:33 UTC
according to the announcement on releases
(http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=7503) this issue
will be re-targeted to OOo Later.
Comment 9 christof.pintaske 2004-10-21 13:16:59 UTC
we will fall back to en_US if we encounter an invalid locale. See i8988 for summary
Comment 10 christof.pintaske 2004-10-21 13:25:38 UTC
implementation subtask to i8988
Comment 11 christof.pintaske 2004-10-29 14:53:09 UTC
send to qa ...
Comment 12 christof.pintaske 2004-10-29 14:55:46 UTC
reassign to Ulf
Comment 13 christof.pintaske 2004-10-29 14:59:03 UTC
set back to fixed
Comment 14 ulf.stroehler 2004-11-16 18:33:09 UTC
Verified in cws 'vcl29'.
Comment 15 ulf.stroehler 2005-02-04 20:05:46 UTC
Verified on MWS m77.