Is it acceptable to use Windows APIs instead of iconv.dll?

Zuxy zuxy.meng at gmail.com
Mon Mar 21 07:04:36 CET 2005


There seems to be a lot of confusion caused by 1.4.x's dependency on
iconv.dll. Besides, iconv.dll is really big compared with gpg.exe
itself. Since GnuPG only uses iconv for conversion between utf-8 and
the current codepage, is it acceptable to write a special piece of
code to emulate iconv thru Windows APIs, e.g. MultiByteToWideChar and
WideCharToMultiByte? Then we can assign the function pointers to this
code, and hence other parts of the program will remain unaffected.

Exact behavior isn't necessary because GnuPG only checks iconv's
return value to see if there's an error, right?

--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the Gnupg-devel mailing list