Ticket #182: iconv_path.diff

File iconv_path.diff, 1.1 KB (added by KO Myung-Hun, 13 years ago)

A patch to clear CVTTYPE_CTRL7F flag only

  • iconv.c

    old new  
    105105                    {
    106106                        /* Do not treat 0x7f as a control character
    107107                           (don't understand what it exactly means but without it MBCS prefix
    108                            character detection sometimes could fail (when 0x7f is a prefix)).
    109                            And don't treat the string as a path (the docs also don't explain
    110                            what it exactly means, but I'm pretty sure converted texts will
    111                            mostly not be paths).  */
     108                           character detection sometimes could fail (when 0x7f is a prefix)). */
    112109                        uconv_attribute_t   attr;
    113110                        UniQueryUconvObject(conv->from, &attr, sizeof (attr), NULL, NULL, NULL);
    114                         attr.converttype &= ~(CVTTYPE_CTRL7F | CVTTYPE_PATH);
     111                        attr.converttype &= ~CVTTYPE_CTRL7F;
    115112                        UniSetUconvObject(conv->from, &attr);
    116113
    117114                        _smutex_request(&gsmtxIconv);