iconv_open

ICONV_OPEN(3)              Linux Programmer's Manual             ICONV_OPEN(3)



åå
       iconv_open - æåã»ããå¤æã®ããã®ãã£ã¹ã¯ãªãã¿ã¼ãå²ãå½ã¦ã

æ¸å¼
       #include <iconv.h>

       iconv_t iconv_open(const char *tocode, const char *fromcode);

説æ
       iconv_open()  é¢æ°ã¯ãæåã¨ã³ã³ã¼ãã£ã³ã° fromcode ãã æåã¨ã³ã³ã¼ãã£ã³ã°
       tocode ã¸ã®ãã¤ãæååå¤æã«é©ãã å¤æãã£ã¹ã¯ãªãã¿ã¼ãå²ãå½ã¦ãã

       fromcode 㨠tocode ã«ä½¿ããã¨ã®ã§ããå¤ã¨ã
       ãµãã¼ããããçµã¿åããã¯ãã·ã¹ãã ã«ä¾åããã GNU C
       ã©ã¤ãã©ãªã§ã¯ã使ããã¨ã®ã§ããå¤ã¯ iconv --list ã³ãã³ãã§ãªã¹ãããã
       ãªã¹ãããããã¹ã¦ã®å¤ã®çµã¿åããããµãã¼ããããã ããã«ã GNU C ã©ã¤ãã©ãªã¨ GNU
       libiconv ã©ã¤ãã©ãªã§ã¯ã 以ä¸ã®æ¥å°¾è¾ããµãã¼ãããã¦ããã

       //TRANSLIT
              tocode ã®å¾ãã«æåå "//TRANSLIT" ãä»ãã¦ããå ´åã 翻訳
              (transliteration) ãæå¹ã«ãªãããã®å ´åã å¤æåã®æå‐
              ã»ããã§è¡¨ç¾ã§ããªãæåãããã®æåã¨åãããã«è¦ãã æå (è¤æ°æåã®å ´åããã)
              ã§è¡¨ç¾ãããã¨ãã§ããã

       //IGNORE
              tocode ã®å¾ãã«æåå "//IGNORE" ãä»ãã¦ããå ´åã å¤æåã®æå‐
              ã»ããã§è¡¨ç¾ã§ããªãæåã¯é»ã£ã¦ç¡è¦ãããã

       ãã®é¢æ°ãèªãã§å¾ãããå¤æãã£ã¹ã¯ãªãã¿ã¼ã¯ã iconv(3)  ã§
       ä½åº¦ã§ã使ããã¨ãã§ããã ãã㯠iconv_close(3) ã使ã£ã¦è§£æ¾ãããã¾ã§æå¹ã§ããã

       å¤æãã£ã¹ã¯ãªãã¿ã¼ã¯å¤æç¶æãæã¤ã iconv_open()
       ãç¨ãã¦çæãããå¾ãå¤æç¶æã¯åæç¶æã§ããã iconv(3)
       ã使ããã¨ã«ããããã£ã¹ã¯ãªãã¿ã¼ã®å¤æç¶æãå¤æ´ãããã
       (å¤æãã£ã¹ã¯ãªãã¿ã¼ã¯ãã«ãã¹ã¬ãã㧠åæã«ä½¿ããã¨ãã§ããªããã¨ãæå³ãã¦ããã)
       å¤æç¶æãåæç¶æã«æ»ãã«ã¯ã inbuf å¼ãæ°ã NULL ã¨ã㦠iconv(3)  ãç¨ãããã¨ã

è¿ãå¤
       iconv_open()  é¢æ°ã¯ãæ°ãã«å²ãå½ã¦ãããå¤æãã£ã¹ã¯ãªãã¿ã¼ãè¿ãã
       ã¨ã©ã¼ã®å ´åããã®é¢æ°ã¯ errno ãè¨å®ãã (iconv_t) -1 ãè¿ãã

ã¨ã©ã¼
       ä»ã®ãããããªã¨ã©ã¼ã®ãã¡ã以ä¸ã®ã¨ã©ã¼ãèµ·ããããã

       EINVAL fromcode ãã tocode ã¸ã®å¤æã¯ããã®å®è£ã§ã¯ãµãã¼ãããã¦ããªãã

ãã¼ã¸ã§ã³
       ãã®é¢æ°ã¯ãã¼ã¸ã§ã³ 2.1 以éã® glibc ã§å©ç¨å¯è½ã§ããã

æºæ
       UNIX98, POSIX.1-2001.

é¢é£é ç®
       iconv(1), iconv(3), iconv_close(3)

ãã®ææ¸ã«ã¤ãã¦
       ãã® man ãã¼ã¸ã¯ Linux man-pages ããã¸ã§ã¯ãã®ãªãªã¼ã¹ 3.79 ã®ä¸é¨
       ã§ãããããã¸ã§ã¯ãã®èª¬æã¨ãã°å ±åã«é¢ããæå ±ã¯
       http://www.kernel.org/doc/man-pages/ ã«æ¸ããã¦ããã



GNU                               2008-08-11                     ICONV_OPEN(3)