Bug 174761

Summary: slang 2.x doesn't enable UTF-8 by default
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: slangAssignee: Petr Raszyk <praszyk>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: notting
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: slang-2.0.5 Release 5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-02 12:26:48 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: 150222    
Attachments:
Description Flags
patch for this issue none

Description Jeremy Katz 2005-12-01 22:38:00 UTC
slang 2.x doesn't automatically determine if it should enable UTF-8 mode causing
crappy line-drawing code in all slang-using apps.  

slang should be figuring out on its own if it should enable its UTF-8 mode based
on LANG (... or just have it always enabled)

This is a regression from 1.4.x

Comment 1 Bill Nottingham 2005-12-01 23:32:04 UTC
Created attachment 121722 [details]
patch for this issue

This fixes it - it calls the function that sets up the UTF-8 support based on
locale.

Comment 2 Petr Raszyk 2005-12-02 12:25:21 UTC
Thanks.

We call now:
( SLcurses_initscr() ) -> SLsmg_init_smg() -> SLutf8_enable() -> utf8_enable()
and then query:
      nl_langinfo (LC_CTYPE);
      getenv("LC_ALL");
      getenv("LC_CTYPE");
      getenv("LANG");