bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ANN: terminfo-20160924.src.gz


From: Mikulas Patocka
Subject: Re: ANN: terminfo-20160924.src.gz
Date: Tue, 25 Oct 2016 16:14:26 +0200 (CEST)
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)


On Mon, 17 Oct 2016, Thomas Dickey wrote:

> On Mon, Oct 10, 2016 at 04:42:11PM +0200, Mikulas Patocka wrote:
> > 
> > 
> > On Sun, 9 Oct 2016, Thomas Dickey wrote:
> > 
> > > On Wed, Sep 28, 2016 at 02:19:27PM +0200, Mikulas Patocka wrote:
> > > > 
> > > > 
> > > > Hi
> > > > 
> > > > The linux2.6 terminfo entry still contains the string "enacs=\E(B\E)0", 
> > > > which makes it unusable with iso-8859-2 locale and most other one-byte 
> > > > character sets (except iso-8859-1 and utf-8).
> > > 
> > > From our previous discussion, it wasn't clear to me why you cannot use
> > > 
> > >   # CONFIGURATION FILE FOR SETUPCON
> > > 
> > >   # Consult the console-setup(5) manual page.
> > > 
> > >   ACTIVE_CONSOLES="/dev/tty[1-6]"
> > > 
> > >   #CHARMAP="UTF-8"
> > >   CHARMAP="ISO-8859-2"
> > > 
> > >   CODESET="Lat2"
> > >   FONTFACE="Fixed"
> > >   FONTSIZE="8x16"
> > > 
> > >   VIDEOMODE=
> > > 
> > >   # The following is an example how to use a braille font
> > >   # FONT='lat9w-08.psf.gz brl-8x8.psf'
> > 
> > I'm using this configuration and this configuration doesn't work with 
> > current terminfo.
> > 
> > You can try it - use the above configuration, run setupcon and then run
> > LANG=cs_CZ.iso-8859-2 mc
> > - at the bottom line, the label for key 6 should be "Presun" (with caron 
> > over "r"), but with current terminfo, the letter r-with-caron is corrupted 
> > and a different character is printed.
> 
> not to argue (as I said, I am investigating), I don't see the problem
> when I run this script (see attached screenshot):
> 
> #!/bin/sh
> reset
> utf8 on
> TERM=linux3.0 \
> LANGUAGE=cs_CZ \
> LANG=cs_CZ.iso88592 mc
> 
> where "utf8" is this script
> 
> #!/bin/sh
> # send character-string to enable UTF-8 mode
> if test ".$1" = ".off" ; then
>       printf '\033%%@'
> else
>       printf '\033%%G'
> fi
> 
> Having seen disagreements over this (both ways), I'll continue investigating
> until I can make a table illustrating the tradeoffs.

You took the screenshot in X-windows - but this problem manifests on the 
console.

You must switch away from the Xserver to Linux console to see the problem. 
If I run your script on the console, it obviously doesn't work. See this: 
http://artax.karlin.mff.cuni.cz/~mikulas/screenshots/screenshot1.jpg

Your script has these problems:
* the "reset" command sends "ESC c", that resets the console mapping to 
  iso-8859-1 mode, so it breaks the iso-8859-2 character set
* the "utf8 on" command switches the console to utf-8 mode, but the LANG 
  variable is set to iso8859-2 mode, so the national characters are not 
  displayed at all

If I remove "reset" and "utf8 on" from your script, on the Linux console, 
I see this:
http://artax.karlin.mff.cuni.cz/~mikulas/screenshots/screenshot2.jpg
- you can see that the iso-8859-2 characters are broken.

When I downgrade the ncurses-base and ncurses-term packages to version 
"6.0+20160625-1", the iso-8859-2 characters are displayed correctly (but 
that version has broken "linux3.0", so we should use "linux" instead):
http://artax.karlin.mff.cuni.cz/~mikulas/screenshots/screenshot3.jpg

Mikulas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]