There are some modifier suffixes //TRANSLIT and //IGNORE mentioned
in the GNU libiconv documentation but not in g_iconv or "man iconv" on
FC5.
http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
Even though its not mentioned in the GTK+ documentation, //TRANSLIT
works for me on FC5 - I suspect that g_iconv just calls libiconv.
Does anyone know how widely these are supported? What happens with
versions of iconv without //TRANSLIT support? If the suffix is ignored
then that will be fine but if the suffix causes failure then there
will have to be an API (or automatic detection) to control this.
This can be experimented with by changing Convert::Open in
scintilla/gtk/Converter.h to:
void Open(const char *charSetDestination, const char *charSetSource,
bool transliterations=true) {
Close();
if (*charSetSource) {
char fullDest[200];
strcpy(fullDest, charSetDestination);
if (transliterations) {
strcat(fullDest, "//TRANSLIT");
}
#if GTK_MAJOR_VERSION >= 2
iconvh = g_iconv_open(fullDest, charSetSource);
#else
iconvh = iconv_open(fullDest, charSetSource);
#endif
}
}
Neil
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest