108 |
/* test UTF8 support by looking at the cursor position (idea from |
/* test UTF8 support by looking at the cursor position (idea from |
109 |
Ricardas Cepas <rch@pub.osf.lt>). Since uClibc actually tests |
Ricardas Cepas <rch@pub.osf.lt>). Since uClibc actually tests |
110 |
to ensure that the format string is a valid multibyte sequence |
to ensure that the format string is a valid multibyte sequence |
111 |
in the current locale (ANSI/ISO C99), use a format specifer of |
in the current locale (ANSI/ISO C99), use a format specifier of |
112 |
%s to avoid printf() failing with EILSEQ. */ |
%s to avoid printf() failing with EILSEQ. */ |
113 |
{ |
{ |
114 |
int y, x; |
int y, x; |
639 |
buf[0] = '.'; |
buf[0] = '.'; |
640 |
buf[1] = '\0'; |
buf[1] = '\0'; |
641 |
} else { |
} else { |
642 |
/* need a kludge for linedrawing chars */ |
unicode_to_charset(buf, cc, s->charset); |
|
if (cc == 0x2500 || cc == 'x') { |
|
|
strcpy(buf, "\016x\017"); |
|
|
} else { |
|
|
unicode_to_charset(buf, cc, s->charset); |
|
|
} |
|
643 |
} |
} |
644 |
if (x != s->width - 1 || y != s->height - 1) |
if (x != s->width - 1 || y != s->height - 1) |
645 |
printf("%s", buf); |
printf("%s", buf); |