Opened 9 years ago

Last modified 9 years ago

#328 new defect

strcoll() always returns 0 on DBCS codepages

Reported by: KO Myung-Hun Owned by:
Priority: normal Milestone: libc-0.7
Component: libc Version: 0.6.6
Severity: normal Keywords:
Cc:

Description

Hi/2.

strcoll() always returns 0 on DBCS codepages.

This seems to be a regression of r3002 and r3003. Here is a test code.

#include <string.h>
#include <locale.h>

int main( void )
{
    const char *s1 = "Hello1";
    const char *s2 = "Hello12";

    setlocale( LC_COLLATE, "en_US.IBM949");
    printf("s1 = [%s], s2 = [%s], strcoll() = %d\n", s1, s2, strcoll( s1, s2 ));

    return 0;
}

Attachments (1)

strcoll.diff (489 bytes) - added by KO Myung-Hun 9 years ago.
patch for strcoll()

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by KO Myung-Hun

Attachment: strcoll.diff added

patch for strcoll()

comment:1 Changed 9 years ago by KO Myung-Hun

Ooops... regression of r3002 and r3003 is not.

Note: See TracTickets for help on using tickets.