Under *nix like systems or even under Windows libiconv could be used to perform a number of encodings behind the codecvt locale facet.
Logged In: YES
iconv functions a long time ago was incorporated into libc; many years no separate libiconv in system.
Logged In: YES
What does incorporated mean ?
If it just means that you have access to classic iconv_open/iconv/iconv_close functions in addition to Standard C function then we will still have some work on our side to integrate it in STLport (because of the relation between mbstate_t and iconv_t).
If it means that thanks to libiconv GlibC has implemented mbtowc_l/wctomb_l functions then it is perfect and integration will be very easy and moreover not limited to stateless encodings. The problem is that I already try to use mbtowc_l/wctomb_l in my Linux distrib and those functions was simply not available. I don't know if there is a GlibC macro telling that those functions are available, if not I only see autoconf to have the info but I know that you do not want it.
> ... that you have access to classic iconv_open/iconv/iconv_close
nm /lib/libc-2.7.so | grep iconv
00016db0 T iconv
00016f30 T iconv_close
00016ba0 T iconv_open
> The problem is that I already try to use mbtowc_l/wctomb_l in my Linux distrib and those functions was simply not available
Yes. And libiconv not available too (of cause, if you system not 8 years old).
GNU LIBICONV - character set conversion library
This library provides an iconv() implementation, for use on systems which
don't have one, or whose implementation cannot convert from/to Unicode.
grep -r mbtowc_l .
grep -r wctomb_l .
This is libiconv 1.12.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.