Red Hat Bugzilla – Bug 70637
cannot show japanese character
Last modified: 2007-04-18 12:45:11 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Description of problem:
SRPM includes i18n patch(ex: less-358+iso247-20001210.diff).
But it is not applied.
For that reason, less cannot show japanese character.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. make a japanese text file.
2. show it by less on kterm.
The i18n patch isn't necessary anymore, the multibyte patch adds
the same functionality and doesn't break support for western languages
(which the i18n patch does!).
Although I can't read japanese texts, I tried to compare the less output
with the webbrowser output of the same file and it looks ok to me.
Can you please attach a sample japanese text file which doesn't display
Ok. I'll send japanese text to you in E-mail.
By the way, less-358-28 on RawHide can show japanese character.
Because, This is applied "Patch2: less-358-iso254.patch and others".
Why is less-358-28 moved to updates?
I have disabled the less-358+iso247-20001210.diff patch in the 7.3 package
because it breaks a lot of other languages.
I added the iso254 and the -mf patch to the rawhide package to get feedback
from users if it works now (such as your comment above).
Now that I have confirmation that it actually works, I'm going to release
an update package for 7.3 soon.
From: "Kumakiri, Akira" <email@example.com>
Sent: Wednesday, September 18, 2002 2:41 PM
Subject: less can not display japanese character on RH7.3
less on RedHat 7.3 can not display Japanese character.
You can see UNIX USER<CA><D4><BD><B8><C9><F4>
<C6><FC>...bra, bra, when trying to type UNIX USER and following some Japanese
This caused by not using Japanese patch. You can rebuild less-358-24.src.rpm
1) get less-358-24.src.rpm from
2) change to root
3) cd /usr/src/redhat/SPECS
4) cp less.spec less.spec.org -- just for saving original
5) vi less.spec
and remove # on the following lines.
%patch -p1 -b .bug
#%patch2 -p1 -b .i18n <-- remove # here
%patch3 -p1 -b .eline
#%patch4 -p1 -b .chset <-- remoce # here
#%patch5 -p1 -b .rh <-- remove # here
#%patch6 -p1 -b .num <-- remove # here
6) rpm -ba less.spec
7) You can find rebuilt less-358-24.i386.rpm on /usr/src/redhat/RPMS/i386
8) rpm -ivh --force less-358-24.i386.rpm
9) check less command wether Japanese are typed correctly or not.
10) if OK, that's it ! if not, go back to step 4) and check less.spec vs.
The above information is reported on http://www.unixuser.jp/info/ (Japanese) and
translate by me for those who is fighting for the same problem. Hope this
helps releasing patched version of less for Japanese on comming release.