Bug 65203
| Summary: | less is broken for Japanese | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Nakai <ynakai> | ||||||||
| Component: | less | Assignee: | Karsten Hopp <karsten> | ||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Aaron Brown <abrown> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 7.3 | CC: | eng-asia-list, wtogami | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2002-05-20 09:12:57 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Nakai
2002-05-20 07:55:50 UTC
Created attachment 57964 [details]
'ABC' file in Japanese multibyte.
Created attachment 57965 [details]
It should be like this on kterm
I understand this iso patch breaks -N option for Japanese and other
languages. And I found a mistake in the patch. The patch author
added a line but forget to add {} to the for sentence. Below change
fixed the problem.
--- less-358/line.c.orig Mon May 20 18:02:51 2002
+++ less-358/line.c Mon May 20 18:03:06 2002
@@ -152,9 +152,10 @@
{
sprintf(&linebuf[curr], "%*d", LINENUM_WIDTH, lno);
column += LINENUM_WIDTH;
- for (i = 0; i < LINENUM_WIDTH; i++)
+ for (i = 0; i < LINENUM_WIDTH; i++) {
charset[curr] = ASCII;
attr[curr++] = AT_NORMAL;
+ }
}
/*
* Append enough spaces to bring us to the lmargin.
Created attachment 57984 [details]
less-358+iso247-20001210-rh.diff (Updated iso patch for less)
Updated iso patch attached. fixed in less-358-27 with iso254 and other patches |