[LFS Trac] #1750: Shadow >= 4.0.14 installs UTF-8 manual pages

LFS Trac trac at linuxfromscratch.org
Mon Mar 20 21:17:30 PST 2006

#1750: Shadow >= 4.0.14 installs UTF-8 manual pages
 Reporter:  alexander at linuxfromscratch.org  |        Owner:  lfs-book at linuxfromscratch.org
     Type:  defect                          |       Status:  new                          
 Priority:  high                            |    Milestone:  6.2                          
Component:  Book                            |      Version:  SVN                          
 Severity:  normal                          |   Resolution:                               
 Keywords:                                  |  
Comment (by alexander at linuxfromscratch.org):

 Proposed solution: either remove all translated manual pages, or do the

 1) Disable installation of manual pages in languages not supported by Man-
 DB, as we already do:

 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile

 2) Create a script for converting manual pages:

 cat >convert-mans <<"EOF"
 #!/bin/sh -e
 shift ; shift
 while [ $# -gt 0 ]
         iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
         mv .tmp.iconv "$FILE"
 chmod 755 convert-mans

 3) Convert manual pages:

 ./convert-mans UTF-8 ISO-8859-2 man/cs/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/de/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/es/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/fi/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/fr/*.?
 ./convert-mans UTF-8 ISO-8859-2 man/hu/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/id/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/it/*.?
 ./convert-mans UTF-8 EUC-JP man/ja/*.?
 # ./convert-mans UTF-8 EUC-KR man/ko/*.?
 ./convert-mans UTF-8 ISO-8859-2 man/pl/*.?
 ./convert-mans UTF-8 ISO-8859-1 man/pt_BR/*.?
 ./convert-mans UTF-8 KOI8-R man/ru/*.?
 ./convert-mans UTF-8 ISO-8859-9 man/tr/*.?
 # ./convert-mans UTF-8 GB2312 man/zh_CN/*.?
 # ./convert-mans UTF-8 BIG5 man/zh_TW/*.?

 Then make && make install as usual.

Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1750>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

More information about the lfs-book mailing list