Do not replace wcwidth(3) with a broken, hand-rolled re-implementation
that comes bundled with xterm(1). Issue found and based on a diff from Lauri Tirkkonen <lotheac at iki dot fi>. The final form of the diff follows a suggestion from tedu@. OK matthieu@
This commit is contained in:
parent
18c4f462d2
commit
402fc78320
@ -4991,6 +4991,10 @@ systemWcwidthOk(int samplesize, int samplepass)
|
||||
wchar_t n;
|
||||
int oops = 0;
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
for (n = 21; n <= 25; ++n) {
|
||||
wchar_t code = (wchar_t) dec2ucs(NULL, (unsigned) n);
|
||||
int system_code = wcwidth(code);
|
||||
|
Loading…
Reference in New Issue
Block a user