Opened 11 years ago
Last modified 11 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)
Note:
See TracTickets
for help on using tickets.

patch for strcoll()