After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 241621 - Localized chars not permited on email editor
Localized chars not permited on email editor
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Editing
unspecified
Other All
: Normal normal
: 1.4.x
Assigned To: gtkhtml-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2003-04-20 15:16 UTC by Guille -bisho-
Modified: 2003-05-01 21:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Composer with accented chars (41.62 KB, image/jpeg)
2003-04-28 04:22 UTC, Gerardo Marin
  Details
not yet applied IM fix (9.00 KB, patch)
2003-04-29 06:07 UTC, Radek Doulik
none Details | Review

Description Guille -bisho- 2003-04-20 15:16:37 UTC
The charracter encoding is properly set to
ISO-8859-15 but in the email editor:

ρ -> displays as [?]
αινσϊ -> displays as aeiou

Cut and paste from a gnome-terminal window works
properly. It appears to be a keyboard input
problem only.

This was on Evolution 1.3.2 (preview 2) compiled
with gcc.

Locale settings were set as:
declare -x LANG="en_US"
declare -x LANGUAGE="en_US"
declare -x LC_ALL="es_ES@euro"
declare -x MM_CHARSET="ISO-8859-15"
Comment 1 Larry Ewing 2003-04-22 16:48:25 UTC
how are you entering these characters?
Comment 2 Radek Doulik 2003-04-24 15:51:55 UTC
what version of gtkhtml do you use? could you try CVS/HEAD gtkhtml?
Comment 3 Guille -bisho- 2003-04-25 01:13:05 UTC
It was using gtkhtml version 3.0.2.

I will try to check now the CVS/HEAD. any snapshot there or anonymous
gnome cvs?
Comment 4 Guille -bisho- 2003-04-25 01:44:08 UTC
ok I found it http://developer.gnome.org/tools/cvs.html.

I get the lastest release:
cvs -z3 checkout gtkhtml 

I compiled it but it still renders the ρ as [?], and αινσϊ as aeiou

The tests works well, and on the text fields I'm able of entering the
ρ char, but not on Evolution.

How could I ensure that Evolution Preview 2 is calling the new
version? (I compiled in the same way garnome does, and the install
replaces the libraries under the garnome installation path) and I have
make ldconfig.

I have tried in HTML mode and plain text composition, with no
diferences. Still not able to write localized chars.
Comment 5 Radek Doulik 2003-04-25 07:40:01 UTC
try to run 'locate gnome-gtkhtml-editor' to see which components do
you have installed. the one evolution-1.3 have to use should be in
$prefix/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so. try to run
evollution-1.3 --force-shutdown and/or killall -9 bonobo-activation-server
Comment 6 Guille -bisho- 2003-04-26 00:05:27 UTC
$ locate gnome-gtkhtml-editor
/usr/bin/gnome-gtkhtml-editor-1.1
/usr/share/man/man1/gnome-gtkhtml-editor-1.1.1.gz
/var/data/garnome/bin/gnome-gtkhtml-editor-3.0
/var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.la
/var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so

All the files have the modification time of the time I compiled the
CVS version (here there is a +6 hours diference), so it matches the
hour of my post informing of the CVS compile.
5387847 2003-04-17 20:26 /data/garnome/bin/gnome-gtkhtml-editor-3.0
   3359 2003-04-25 03:28
/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.la
5685195 2003-04-25 03:28
/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so

I have removed the read permisions of the older release, so I'm quite
sure is using the CVS version of gtkhtml now (and its quite evident
that is gnome 2)
/usr/bin/gnome-gtkhtml-editor-1.1
/usr/share/man/man1/gnome-gtkhtml-editor-1.1.1.gz

In other machines I have been testing the debian experimental package
of evolution release 2, and suffers from the same problem (Usually
debian pays a lot of attention to localization, so I doubt is a
problem in compilation)

If you need to test anyhing more, I'm willing to help!

See you and thanks.
Comment 7 Guille -bisho- 2003-04-27 03:28:44 UTC
Another surprising detail:

with: export LC_ALL="es_ES" (ISO-8859-1)
   ρ key doesn't print anything
   αινσϊ as usual, aeiou

with: export LC_ALL="es_ES@euro" (with euro char , ISO-8859-15)
   ρ key writes [?]
   αινσϊ as usual, aeiou
Comment 8 Gerardo Marin 2003-04-28 04:21:20 UTC
Funny, it works for me without LC_* set at all. (Using Default C) as
proven by attached picture.
Comment 9 Gerardo Marin 2003-04-28 04:22:09 UTC
Created attachment 42330 [details]
Composer with accented chars
Comment 10 Radek Doulik 2003-04-28 07:02:06 UTC
please remove the old /data/garnome/bin/gnome-gtkhtml-editor-3.0 and
be sure to rerun autogen.sh before recompilation so that shared
library component is used
Comment 11 Radek Doulik 2003-04-28 07:05:01 UTC
your $prefix/lib/bonobo/servers/GNOME_GtkHTML_Editor.server should
contain location="$prefix/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so"
Comment 12 Guille -bisho- 2003-04-29 00:11:11 UTC
In my case, running it with LC_ALL unset don't work either. :(

I have the correct module at GNOME_GtkHTML_Editor.server:
$ grep location
/var/data/garnome/lib/bonobo/servers/GNOME_GtkHTML_Editor.server
location="/var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so">
<oaf_server iid="OAFIID:GNOME_GtkHTML_Editor:3.0" type="factory"
location="OAFIID:GNOME_GtkHTML_Editor_Factory:3.0">

ls -la /var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so
5685195 2003-04-27 05:16
/var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so

(The time of the latest CVS compile)

I'm compiling again the CVS version now, starting from a fresh one and
running ./autogen.sh (I do that the last time, in order to get the
Makefile)

The compile is finished, and now the 
ls -la /var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so
5684211 2003-04-29 02:08
/var/data/garnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so
(So it's updated to the current date)

And i'm still unable to write ρ and αινσϊ.

BTW, I'm using XFree 4.3. I don't know if that is important, because
all the other apps work well, and I'm able to get αινσϊ on the subject
line.

Maybe is a problem of evolution, that is not passing the enviroment
conf to the component?


Comment 13 Radek Doulik 2003-04-29 06:07:28 UTC
Created attachment 42338 [details] [review]
not yet applied IM fix
Comment 14 Radek Doulik 2003-04-29 06:09:24 UTC
please could you try to apply the attached patch? this patch is not
yet in CVS because it's waiting for an approval.
Comment 15 Radek Doulik 2003-04-29 06:14:44 UTC
oh, and to answer you question, the environment should be OK because
it's shared memory component so it runs in-proc (it has the same
environment as evolution).

what has Input Methods submenu (in right click popup menu) selected?
Comment 16 Guille -bisho- 2003-04-29 13:36:18 UTC
I'll try the patch this night. :) thanks!

The input method is the ISO-8859-15 (Occidental Europe, with euro support)
Comment 17 Guille -bisho- 2003-04-30 02:17:57 UTC
I have problems applying the patch:

$ cd src
$ patch -p0 < ../patch_im.patch
patching file ChangeLog
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ChangeLog.rej
patching file gtkhtml-private.h
Reversed (or previously applied) patch detected!  Assume -R? [n] y
patching file gtkhtml.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y
patching file htmlcursor.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y
patching file htmlengine.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y

Which version should I use in the cvs? Can I get a patched tarball
somewhere?
Comment 18 Larry Ewing 2003-04-30 02:46:53 UTC
Just use CVS the patch was applied earlier today.
Comment 19 Gerardo Marin 2003-04-30 03:48:18 UTC
Closing since patch was applied.
Comment 20 Guille -bisho- 2003-04-30 14:43:16 UTC
I have tried yesterday the latest CVS version and I'm *still unable*
to print the special chars. :(((

Maybe is my configuration which is causing the problems, I don't know,
but it's still not working.

I'm willing to help, so I open to any suggestion.
Comment 21 Radek Doulik 2003-04-30 14:54:44 UTC
what do you mean by "the tests work well". do you mean test_editor
program in gtkhtml/components/html-editor?

also I don't see "ISO-8859-15 (Occidental Europe, with euro support)"
in my Input Methods menu. do you know where it comes from? what should
I setup here to have it as well?
Comment 22 Guille -bisho- 2003-04-30 16:05:24 UTC
I didn't know there was a test-editor!
I'll try it this night.

The ISO-8859-15 is quite tipical in Europe. If you set LANG to
es_ES@euro it default to that encoding. Anyway, I have tried with
other LANG's other LC_ALL, without LC_ALL, etc
Comment 23 Radek Doulik 2003-04-30 16:19:55 UTC
oh, I am not talking about encoding, but about Input Method. you could
see which method is selected in the right click popup menu/Input
Method submenu. it probably uses default, but I wanted to be sure anyway
Comment 24 Guille -bisho- 2003-05-01 19:21:10 UTC
It works!!!

Now I can write all localized chars. Thanks a lot!
Comment 25 Radek Doulik 2003-05-01 20:21:51 UTC
Great! What did help you in the end?
Comment 26 Guille -bisho- 2003-05-01 21:21:33 UTC
I just get gtkhtml again from CVS (The previous version I get has some
problems and the editor-test was not build), and recompile libgtkhtml
also...