Bug 174761 - slang 2.x doesn't enable UTF-8 by default
Summary: slang 2.x doesn't enable UTF-8 by default
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: slang
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Petr Raszyk
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC5Blocker
TreeView+ depends on / blocked
 
Reported: 2005-12-01 22:38 UTC by Jeremy Katz
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: slang-2.0.5 Release 5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-02 12:26:48 UTC
Type: ---


Attachments (Terms of Use)
patch for this issue (430 bytes, patch)
2005-12-01 23:32 UTC, Bill Nottingham
no flags Details | Diff

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");
      
      
 



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