Bug 185950

Summary: Authconfig-tui present unusable screen under Polish locale set.
Product: [Fedora] Fedora Reporter: MW <rabe>
Component: newtAssignee: Petr Rockai <prockai>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: clumens, dhowells, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 0.52.2-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-03 21:54:20 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:
Bug Depends On:    
Bug Blocks: 189981    
Attachments:
Description Flags
Scrshot of authconfig being run with Polish Locale (under xterm)
none
Proposed patch none

Description MW 2006-03-20 11:58:47 UTC
Description of problem:
If Polish locale selected as system locale, the authconfig-tui presents no
useful screen on console. It consists only of blue bkg and movement tips at the
very last row of the screen (localized strings). However authconfig-tui reacts
on movement keys pressed ie. space, ESC or F12.
If it is run with C locale it presents full workable screen.

Version-Release number of selected component (if applicable):
authconfig-5.2.2-1

How reproducible:
After fresh install with no graphic desktops/X, when firstboot invokes
authconfig via setup or
on every run as root on console/xterm with Polish locale set.

Steps to Reproduce:
1.Fresh install with no X/Desktop and set Polish locale as system one, then
allow firstboot to invoke setup and authconfig. OR
2.Run it from command line or throuh setup tools on console/xterm as root.
  
Actual results:
Only unusable blue screen.

Expected results:
Usable screen with options to check/uncheck to set up authentication of the system.

Additional info:

Comment 1 MW 2006-03-20 11:58:47 UTC
Created attachment 126345 [details]
Scrshot of authconfig being run with Polish Locale (under xterm)

Comment 2 Tomas Mraz 2006-03-20 14:02:12 UTC
Seems to be a newt toolkit problem as it works fine with the same authconfig
version on FC-4.

Workaround - make the terminal window wider.


Comment 3 MW 2006-03-21 06:01:47 UTC
Hmm??? Make a terminal window wider.... But it also happens in bare console
outside xterm.. It happens during firstboot in text mode. Setting higher VGA
mode in console doesn't help.

Comment 4 Chris Lumens 2006-03-28 15:41:36 UTC
*** Bug 186907 has been marked as a duplicate of this bug. ***

Comment 5 Chris Lumens 2006-03-28 16:32:14 UTC
This is a problem that's turned up in the text parts of the installer (ethernet
device screen, partitioning screen), firstboot, and various configuration tools.
 What we've determined matches up with what Tomas says - the text is too large
for the terminal, so newt simply doesn't draw the dialog on the screen.  This is
a regression from FC4.

Attached is a reproducer in python for this bug.  Make sure your terminal is
under 200 columns.  Note that we can't resize the console, so this is a big
problem for us.

#!/usr/bin/python

from snack import *

li = Listbox(5, returnExit = 1)
li.append("a"*200, "f")
screen = SnackScreen()
g = Grid(1, 3)
g.setField(li, 0, 1, (0, 1, 0, 1))
g.place(1, 1)
screen.gridWrappedWindow(g, "title")
f = Form("This is some help")
f.add(li)
res = f.run()
screen.popWindow()
screen.finish()

Comment 6 Tomas Mraz 2006-03-28 20:41:41 UTC
Created attachment 126932 [details]
Proposed patch

This patch fixes the regression.

Comment 7 Petr Rockai 2006-04-03 21:54:20 UTC
Thanks Tom for the patch. An updated newt resolving this issue has been 
pushed to fc5 updates.