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 121491 - --title <locale string> needs conversion to UTF-8
--title <locale string> needs conversion to UTF-8
Status: RESOLVED DUPLICATE of bug 336155
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-09-04 21:32 UTC by Hidetoshi Tajima
Modified: 2007-01-25 17:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A proposed patch to convert given --title string to UTF-8. (518 bytes, patch)
2003-09-04 21:33 UTC, Hidetoshi Tajima
needs-work Details | Review
updated patch (3.03 KB, patch)
2006-01-22 21:12 UTC, Claudio Saavedra
none Details | Review

Description Hidetoshi Tajima 2003-09-04 21:32:25 UTC
When gnome-terminal is run with --title option, the following string 
argument is formatted in locale's native encoding, so should be converted
to UTF-8.
Comment 1 Hidetoshi Tajima 2003-09-04 21:33:15 UTC
Created attachment 19744 [details] [review]
A proposed patch to convert given --title string to UTF-8.
Comment 2 Mariano Suárez-Alvarez 2003-09-04 22:59:22 UTC
This patch does half the work: terminal_app_get_clone_command should
undo the conversion into utf-8, as its output will go through the
option parsing routine eventually.

While we are at it, shouldn't we do this for other options too? 
At least --working-directory and --{window,tab}-with-profile come to
mind. Looking at gnome-terminal --help output, those are the ones
taking textual input... I don't know about the argument to --execute.
Comment 3 Kjartan Maraas 2004-09-04 07:31:10 UTC
Hidetoshi? Could you update the patch according to comment #2?
Comment 4 Claudio Saavedra 2006-01-22 21:12:37 UTC
Created attachment 57876 [details] [review]
updated patch

This patch will convert all text input parameters to UTF-8 and when cloning the arguments will undo the convertion for those parameteres where it makes sense (title and working-directory).
Comment 5 Claudio Saavedra 2007-01-25 11:04:01 UTC
Happy birthday, dear patch. :-)
Comment 6 Behdad Esfahbod 2007-01-25 17:47:51 UTC
Doesn't GOption convert to UTF-8 automatically?
This should be marked as a dupe of "Use GOption" bug for g-t.
Comment 7 Mariano Suárez-Alvarez 2007-01-25 17:53:16 UTC
Indeed. We don't have any G_OPTION_FLAG_FILENAME so everything gets utf8ised.

I had meant to mark this as a dup a while ago but forgot about it :/



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