|
less-374 patch (was Re: less 358): msg#00095internationalization.linux
On Mon, 20 May 2002, Zvi Har'El wrote: > I am using less on a UTF-8 Redhat Linux 7.3 machine. I am having troubles with > using man, because of the overstiking is not handled properly. I read the > Unicode HOWTO and compiled less (358) with the patch suggested by > http://mail.nl.linux.org/linux-utf8/2001-05/msg00023.html > and the situation improved. However it is not completely OK, as you may easily .... I'm afraid the patch you applied introduced the problem you described while solving the problem of overstriking in UTF-8 mode. BTW, the patch (as applied by the author of less in less 361) only works for two-octet-long UTF-8 characters. > at the beta version of less (377?), but it didn't adress this bug at all The patch you refered to seems to have been applied in less 361 according to version.c file. Anyway, attached is a *simplistic*(not perfect) patch against less 374(the newest at less home page) I've just made that apparently solves both issues, overstriking of three-octet-long UTF-8 characters and underlining and overstriking of two identical US-ASCII characters in a row ('ff' in 'troff', 'tt' in 'pattern'). It's not perfect because it only checks the first octet of a two or three octet-long UTF-8 char to see if it's identical with the char. preceding backspace. I tested it under UTF-8 xterm and it worked fine with an attached test case with 'nroff', U+0411, U+2010, and U+AC00, U+4E00 overstruck and 'pattern' underlined. Underlining doesn't work for UTF-8 characters(other than US-ASCII), though. However, this is also the case of less-374 without my patch. Hope this helps, Jungshik Shin
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | less-358: 00095, Zvi Har'El |
|---|---|
| Next by Date: | Re: less-374 patch (was Re: less 358): 00095, Jungshik Shin |
| Previous by Thread: | less-358i: 00095, Zvi Har'El |
| Next by Thread: | Re: less-374 patch (was Re: less 358): 00095, Jungshik Shin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |