LinuxQuestions.org
Register a domain and help support LQ
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 12-04-2012, 04:23 PM   #16
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,497

Original Poster
Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682

Quote:
Originally Posted by Didier Spaier View Post
I would certainly prefer the other way round. UTF-8 is the future.
That's why I'll be glad to use it in the future.
 
Old 12-04-2012, 04:40 PM   #17
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 4,008

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
Quote:
Originally Posted by kikinovak View Post
That's why I'll be glad to use it in the future.
Why not make the future begin right now? In /etc/profile.d/lang.sh I have:
Code:
export LANG=fr_FR.utf8
In /etc/lilo.conf:
Code:
append=" vt.default_utf8=1"
and everything works to my satisfaction.
 
Old 12-05-2012, 05:38 AM   #18
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,497

Original Poster
Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I know. I'm using the same here, approximately.

Code:
export LANG=fr_FR.utf8
export LC_COLLATE=fr_FR.utf8
Even then, according to /usr/lib/man.conf, man pages display correctly when latin1-encoded. As far as I understand.
 
Old 12-05-2012, 11:58 AM   #19
NonNonBa
Member
 
Registered: Aug 2010
Distribution: Slackware
Posts: 61

Rep: Reputation: 21
Quote:
Originally Posted by kikinovak View Post
Of course the cleanest solution would be a script that scans everything in /usr/man, hunts down utf8-encoded man pages and converts them to latin1. This is slightly over my scripting abilities, but I've started to experiment nevertheless.
There are at least two problems:

1) Latin1 codes only the West-European languages. If you convert Polish, for example, you must do it to Latin2. This means your script must be able to know which "Latin" (iso8859) charset to convert a page into according to the language directory it belongs to ;
2) Each charset from iso8859 codes only 256 characters max. while utf-8 can potentially codes all the characters. This means you can't convert from UTF-8 text that contains characters mixing two charsets form iso8859 or not represented in any of them. For example, if a French utf-8 man-pages uses "", the conversion will be broken ("" is not in latin1, only in latin9).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
man pages help vijaya_svk Linux - Newbie 4 07-14-2008 01:51 PM
C++ man pages Guest1234 Linux - Newbie 2 06-29-2008 09:12 AM
GTK1 not understanging UTF8?, LANG=pl_PL.UTF-8 qs-raven Linux - Software 5 12-03-2006 08:31 AM
man pages q. jnusa Linux - Software 6 02-03-2006 08:40 AM
man pages? southsibling Linux - Newbie 2 08-31-2003 11:04 AM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration