Ticket #182: iconv_path.diff
File iconv_path.diff, 1.1 KB (added by , 13 years ago) |
---|
-
iconv.c
old new 105 105 { 106 106 /* Do not treat 0x7f as a control character 107 107 (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)). */ 112 109 uconv_attribute_t attr; 113 110 UniQueryUconvObject(conv->from, &attr, sizeof (attr), NULL, NULL, NULL); 114 attr.converttype &= ~ (CVTTYPE_CTRL7F | CVTTYPE_PATH);111 attr.converttype &= ~CVTTYPE_CTRL7F; 115 112 UniSetUconvObject(conv->from, &attr); 116 113 117 114 _smutex_request(&gsmtxIconv);