converters/libiconv change request for net/samba3

Alexander Nedotsukov bland at FreeBSD.org
Fri Jul 23 02:21:46 PDT 2004


NAKAJI Hiroyuki wrote:

>The converters/libiconv was updated to 1.9.2 and it cannot solve my
>problem, that is, much of Japanese characters are not displayed properly
>via Samba3.
>
>  
>
...

>You gnome team say libiconv is not wrong, but there exactly is a
>problem in handling japanese characters when libiconv is combined with
>samba3. Can you explain why? Is it due to samba3 only? Is it my fault?
>  
>
Well. Don't get me wrong. All I said that current GNU libiconv's mbc ->
wc conversion is correct and proposed hacks for yen and overline symbols
are not. At the same time I confirmed a problem in cp932 roundtrip and
promissed to commit patch for it only. Pehaps the only thing I guilty is
a very big feedback timeout :-) Sorry.
Fyi. There is nothing wrong with samba[1], vim, whateverelse in the
situation above. This is GNU libiconv design flaw if you wish. It's
conversion based on mbc->wc->mbc transition. Terefore it is impossible
to make a patch which will fix the situation for 100%.

[1] I fact I didn't paid much attention to your samba configuration
first time. Now I can say that you see excactly what supposed to be.
Please replace EUCJP-MS with EUCJP and you will be set. FYI. FreeBSD do
not support EUCJP-MS and therefore either EUCJP-MS encoding will be
added to GNU libiconv claiming that "unix charset = EUCJP-MS" is incorrect.

>Another question,
>
>in "XML Japanese Profile, W3C Note, 14 April 2000"
>http://www.w3.org/TR/2000/NOTE-japanese-xml-20000414/
>
>x-sjis-cp932                    (cp932)
>  
>
Implemented. Though not roundtrip issue compliant.

>x-eucjp-open-19970715-ms        (eucJP-ms)
>  
>
Not implemented.

>are listed, and are they implemented in libiconv properly?
>  
>
To get full list of supported encodings and their aliases you can always
use iconv -l.

Thanks for the cp932 patch I'll hope to be able to check it this weekends.

All the best,
Alexander.


More information about the freebsd-gnome mailing list