[Uim-bugs] [Bug 14812] Crash because of misusing iconv (uim-1.4.2 and older)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 5 15:02:08 PST 2008


http://bugs.freedesktop.org/show_bug.cgi?id=14812





--- Comment #2 from G-HAL <g-hal+bugs.freedesktop.org at fenix.ne.jp>  2008-03-05 15:02:07 PST ---
Sorry, I make a mistake.
If uim use only UTF-8, EUC-JP and ShiftJIS(cp932),
resetting the state is specially unnecessary, probably.
I forgot to check whether it was able to be applied to uim or not.
Ummm...
Excuse me but I have no idea that there are any OS or emacs-el that uses
ISO-2022-JP for locale in OS or encoding in emacs-el.


Anyway, in generally, resetting a state is required when using iconv.
I do not found a document clearly described.
But some documents said implicitly.

In libiconv-1.11, testing code and command-line tool.
libiconv-1.11/tests/table-from.c: line from 56 to 58
libiconv-1.11/tests/table-to.c: line from 70 to 72
libiconv-1.11/src/iconv.c: ... so many, snip.

Sun docs, man pages section 3 iconv(3c).
In example, resetting a state using INIT_SHIFT_STATE() macro.
http://docs.sun.com/app/docs/doc/819-2243/iconv-3c?l=ja&a=view


Thank you.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the uim-bugs mailing list