GNOME Bugzilla – Bug 241621
Localized chars not permited on email editor
Last modified: 2003-05-01 21:21:33 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"
how are you entering these characters?
what version of gtkhtml do you use? could you try CVS/HEAD gtkhtml?
It was using gtkhtml version 3.0.2. I will try to check now the CVS/HEAD. any snapshot there or anonymous gnome cvs?
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.
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
$ 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.
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
Funny, it works for me without LC_* set at all. (Using Default C) as proven by attached picture.
Created attachment 42330 [details] Composer with accented chars
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
your $prefix/lib/bonobo/servers/GNOME_GtkHTML_Editor.server should contain location="$prefix/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.so"
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?
Created attachment 42338 [details] [review] not yet applied IM fix
please could you try to apply the attached patch? this patch is not yet in CVS because it's waiting for an approval.
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?
I'll try the patch this night. :) thanks! The input method is the ISO-8859-15 (Occidental Europe, with euro support)
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?
Just use CVS the patch was applied earlier today.
Closing since patch was applied.
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.
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?
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
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
It works!!! Now I can write all localized chars. Thanks a lot!
Great! What did help you in the end?
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...