[GRASS-dev] Re: [GRASS GIS] #882: i18n enabled winGRASS: properties dialog not opening
GRASS GIS
trac at osgeo.org
Fri Jan 22 05:12:55 EST 2010
#882: i18n enabled winGRASS: properties dialog not opening
---------------------------+------------------------------------------------
Reporter: neteler | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords:
Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by glynn):
Replying to [comment:5 neteler]:
> On a Japanese Linux box, the current encoding is:
{{{
r.cost --interface-description
<?xml version="1.0" encoding="EUC-JP"?>
}}}
>
> but should be UTF8.
What do you mean by "should be"? Are the descriptions encoded in EUC-JP or
in UTF-8? First and foremost, the encoding specified in the header must be
the encoding which is actually used for the data.
The strings to which `opt->label` and `opt->description` point will be in
the locale's encoding, as that's how `dgettext()` works, and that's how
they need to be encoded so that the --help output displays correctly on
the user's terminal. `G__usage_xml()` doesn't recode the data; it just
copies the strings into the output.
If you want the --interface-description output to always use UTF-8, then
`G__usage_xml()` will need to recode any localised strings with `iconv()`.
There shouldn't be any problem with encoding=EUC-JP, but encoding=CP932
may be problematic as "CP932" isn't an IANA-registered encoding (the IANA
name is "Windows-31J"), so it may not be recognised by XML parsers.
[http://www.iana.org/assignments/character-sets IANA-registered encodings]
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/882#comment:7>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list