Changeset 3755


Ignore:
Timestamp:
Mar 4, 2012, 10:34:58 PM (13 years ago)
Author:
bird
Message:

Backported r3754: iconv.c: Assume input is PATHs so that samba works for Koreans. Fixes #182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/src/lib/locale/iconv.c

    r3724 r3755  
    107107                           (don't understand what it exactly means but without it MBCS prefix
    108108                           character detection sometimes could fail (when 0x7f is a prefix)).
     109                           
    109110                           And don't treat the string as a path (the docs also don't explain
    110111                           what it exactly means, but I'm pretty sure converted texts will
    111                            mostly not be paths).  */
     112                           mostly not be paths).
     113                           Ticket #182: This breaks samba with Korean CP, WON and forward
     114                           slash seems to be mapped to the same ASCII character.  Better
     115                           assume the input is PATHs. */
    112116                        uconv_attribute_t   attr;
    113117                        UniQueryUconvObject(conv->from, &attr, sizeof (attr), NULL, NULL, NULL);
    114                         attr.converttype &= ~(CVTTYPE_CTRL7F | CVTTYPE_PATH);
     118                        attr.converttype &= ~(CVTTYPE_CTRL7F/* | CVTTYPE_PATH*/);
    115119                        UniSetUconvObject(conv->from, &attr);
    116120
Note: See TracChangeset for help on using the changeset viewer.