LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2009, 01:52 PM   #1
appzer0
LQ Newbie
 
Registered: Nov 2008
Location: France
Distribution: 0Linux, Slackware
Posts: 13

Rep: Reputation: 0
How to make Slack installer print native language correctly + UTF-8 support ?


Hi,

I'm customizing the Slackware installer in order to allow localized (french) installation. The problem is that ncurses (which 'dialog' uses) cannot display characters others than latin1, which is the default. I'd also like to add the UTF-8 support - if possible - since my dev system is configured in UTF-8 (infact, th 'é' char is in latin-1 and displays correctly, the problem is that when an 'é' ('e accented cute') is printed, the frame is messed up, causing bad new lines and such bad display problems.

My questions are:

1- what packages do I need to recompile and how? What to modify in Busybox and 'initrd.img' to enable native language and wide character support ?

2- If no re-compilation is needed, how could I get these supports ? My needs are either having either UTF-8 support (fr_FR.UTF-8) or, if this is not possible, having ISO-8859-{13,15} encodings support would be just great.

2bis- Which binaries/scripts in the 'initrd.img' do I need to replace ?

The Slack installer (and so on the whole distro) is _entirely_ adapted right now. Displaying correct characters during installation is the last problem I have.

Sorry for my english and TIA.
 
Old 03-31-2009, 03:17 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Hello,

it seems that some people be able to display UTF-8 characters with ncurses, see http://ubuntuforums.org/showthread.php?t=879169

Side note: I have set "export LANG=fr_FR.UTF-8" in /etc/profile.d/lang.sh

PS Peux-tu en dire plus sur ton projet ? Depuis le temps que j'attends Slackware en Français
 
Old 04-01-2009, 01:47 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
ncurses in slackware (at least -current) already has support for wide characters (UTF-8). You just need to make sure to have set the correct locale first, as the Ubuntu thread you referenced recommended.
From ncurses.SlackBuild:
Code:
# Build/install again with wide character support:
make clean
WIDEC=--enable-widec
ncurses_configure
make -j4 || exit 1
make install
make install DESTDIR=$PKG
As a side note, if you're already working on internationalizing the Slackware installer, would it be much extra work to make it fully localised and l10n compliant so that others can follow your footsteps to localise for other languages as well?
 
Old 04-01-2009, 07:29 AM   #4
appzer0
LQ Newbie
 
Registered: Nov 2008
Location: France
Distribution: 0Linux, Slackware
Posts: 13

Original Poster
Rep: Reputation: 0
@Yalla-One: this was my first purpose (internationalization) though I'm not comfortable with gettext stuff BUT I could assign variables to strings displayed to user... But it represents too much extra work for now (which are not as good as I'd like). If everything is going fine (meaning "if my localized installer works as well as the original installer"), I will think about it.

About ncurses, I guess I'll have to take the binaries from the distribution (libs and executables) and place them in the initrd.img. I'll have to install the needed locales as well. Have no idea how to do this but it shouldn't be that hard. Any clue much appreciated.

@Didier Spaier: I'll let you know when it's ready! Btw i like your website :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Locale problem: Can't convert string from native encoding to 'UTF-8' treotan Ubuntu 1 11-14-2007 08:02 AM
Windows native bash-like script language koyi Programming 13 01-24-2006 10:24 PM
Wireless NICs with native support in Slack 10.1 Surfrider Slackware 5 08-01-2005 04:19 PM
emerge -u world with native language for openoffice Abec Linux - Software 2 01-15-2005 05:32 AM
forgot to install language support during installation, how to make up? parv Fedora - Installation 0 08-31-2004 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration