Bug 24463 - Weird character translations
Weird character translations
Product: Red Hat Linux
Classification: Retired
Component: less (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Karsten Hopp
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-01-20 13:38 EST by Michal Jaegermann
Modified: 2007-04-18 12:30 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-31 17:48:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Norwegian text (47 bytes, patch)
2001-01-31 17:48 EST, Trond Eivind Glomsrxd
no flags Details | Diff

  None (edit)
Description Michal Jaegermann 2001-01-20 13:38:22 EST
In a gnome-terminal window where font used is from koi8-r charset
'less' precedes every string of cyrilic characters with an uppper
case 'A'.  This effect is at its best if one tries to send an output
from 'od -c' into less. :-)  Explicit changes in LANG environment
variable (I tried a few, including ru_RU) do not have any visible
effect apart of things like LANG=C where various characters are treated
as binary.  OTOH using -K with various 8-bit encodings, including
'less -K latin1',  removes any display surprises regardless of a value
of LANG.  The above is likely to have a disconcerting effect on

If there is no handy test input around a file attached to #16978
can be used for such purposes.

Comment 1 Karsten Hopp 2001-01-22 10:22:56 EST
less uses the variables LESSCHARSET and JLESSCHARSET to determine the
charset. Please set one of those to koi8-r for the time being. 
It seems that the japanese patch breaks things, we will look for an solution.
Comment 2 Trond Eivind Glomsrxd 2001-01-31 17:44:33 EST
It also breaks latin1 charactersets... it puts an "A" in front of sequences of
non-ASCII characters.
Comment 3 Trond Eivind Glomsrxd 2001-01-31 17:48:49 EST
Created attachment 8619 [details]
Norwegian text
Comment 4 Karsten Hopp 2001-02-01 11:26:17 EST
I inserted an fallback if no charset could be found. Seems to work now,
but please test less-358-14.i386.rpm and reopen this bug if this breaks
Comment 5 Trond Eivind Glomsrxd 2001-02-01 11:27:41 EST
It seems to work nicely now.

Note You need to log in before you can comment on or make changes to this bug.