#8 Support encodings through libiconv

open
nobody
None
5
2008-06-12
2008-06-12
No

Under *nix like systems or even under Windows libiconv could be used to perform a number of encodings behind the codecvt locale facet.

Discussion

  • Francois Dumont

    Francois Dumont - 2008-06-12
    • summary: Support encodings though libiconv --> Support encodings through libiconv
     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-06-13

    Logged In: YES
    user_id=615813
    Originator: NO

    iconv functions a long time ago was incorporated into libc; many years no separate libiconv in system.

     
  • Francois Dumont

    Francois Dumont - 2008-06-13

    Logged In: YES
    user_id=1096600
    Originator: 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.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-06-13

    Logged In: YES
    user_id=615813
    Originator: NO

    > ... 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).

    cat README

    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 .
    (nothing)
    grep -r wctomb_l .
    (again nothing)

    This is libiconv 1.12.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks