gedit doesn't autodetct Japanese encodings

Bug #36676 reported by Jun Kobayashi
16
Affects Status Importance Assigned to Milestone
language-pack-gnome-ja-base (Ubuntu)
Fix Released
Wishlist
Ubuntu Desktop Bugs

Bug Description

Gedit dosen't support Japanese major character encodings - EUC-JP, Shift-JIS and ISO-2022-JP, so Japanese users often face garbled characters on gedit. If a users select "Japanese" on installer, it's good to make gedit detect these character encodings to ensure out-of-the-box support for Japanese.

With following commands, gedit supports these encodings.

gconftool-2 -s /apps/gedit-2/preferences/encodings/auto_detected --type=list --list-type=string '[UTF-8,EUC-JP,SHIFT_JIS,ISO-2022-JP,CURRENT,ISO-8859-15]'
gconftool-2 -s /apps/gedit-2/preferences/encodings/shown_in_menu --type=list --list-type=string '[UTF-8,EUC-JP,SHIFT_JIS,ISO-2022-JP]'

Changed in gedit:
assignee: nobody → ubuntu-cjk-testers
assignee: ubuntu-cjk-testers → nobody
Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote :

A more smart way is to use ja.po file.
I attach an diff for ja.po.

Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote : diff for ja.po

diff for ja.po

Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote :

I sent the diff to Japanese translator of gedit.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. Could you read http://bugzilla.gnome.org/show_bug.cgi?id=309493 and try what they describe. Does it fix your issue?

Changed in gedit:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Jun Kobayashi (jkbys) wrote :

Their way tentative fixes my issue - the ordering ISO-2022-JP,Shift_JIS,EUC-JP,UTF-8,CURRENT,ISO-8859-15 works perfectly for me. But I think it's difficult for "normal user" to modify gconf keys. So it's good to set this with ja.po as Hiroyuki says.

Hiroyuki, could you update your ja.po with the above ordering?

Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote : the diff for ja.po

Revised.

Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote :

Paolo Maggi, gedit developer, said
"IIMO, the japanese translators should translate the default value of the above gconf key so to match the needs of the japanese people." in comment #1.
This is exactly my approach. But unfortunately, Japanese translator does not aware the fact, so gedit still fails to auto-detect japanese encodings.

I sent a revised diff with the link of the GNOME BUG#, so he will update his translation sooner or later. If his update will not be in Dapper release, please use my diff. Thanks.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your work on that. Could you contact the Japanese rosetta team and fix the string on rosetta? That's better than patch the source package?

Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote :

I've translated the string on rosseta 4 days ago. But these are not approved yet.
And these translations were applied both in gedit cvs head and gnome-2.14 branch by the japenese translator.
See http://cvs.gnome.org/viewcvs/gedit/po/ChangeLog?r1=1.1599.2.4&r2=1.1599.2.5

Revision history for this message
Sebastien Bacher (seb128) wrote :

Marking as fixed and waiting for upload so

Changed in gedit:
status: Needs Info → Fix Committed
Revision history for this message
Emmet Hikory (persia) wrote :

The changes are reflected both in the current source in dapper and the AMD64 release. Version tracking with this package is somewhat limited, and I am not sure in which release this was completed.

Changed in language-pack-gnome-ja-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.