Opened 5 years ago

Last modified 5 years ago

#328 new defect

strcoll() always returns 0 on DBCS codepages

Reported by: komh 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 komh 5 years ago.
patch for strcoll()

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by komh

patch for strcoll()

comment:1 Changed 5 years ago by komh

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

Note: See TracTickets for help on using tickets.