aMule Bug Tracker - aMule
View Issue Details
0001510aMuleMiscpublic2009-04-15 16:132010-05-19 09:45
Heffer 
Wuischke 
normalminoralways
resolvedfixed 
2.2.4 
2.3.1 
10180
Any
0001510: Convert man files to UTF-8
It would be great if the man files could be converted to UTF-8 alltogether. I'm packaging aMule for Fedora and the guidelines require the files to be in UTF-8. Also this makes sense to me because they contain special characters from different languages.
No tags attached.
Issue History
2009-04-15 16:13HefferNew Issue
2009-04-15 16:13HefferOperating System => Any
2009-04-16 18:01WuischkeStatusnew => resolved
2009-04-16 18:01WuischkeResolutionopen => fixed
2009-04-16 18:01WuischkeAssigned To => Wuischke
2009-04-16 18:01WuischkeNote Added: 0003117
2009-09-20 16:55HefferNote Added: 0003301
2009-09-20 16:55HefferStatusresolved => feedback
2009-09-20 16:55HefferResolutionfixed => reopened
2009-09-20 17:05HefferNote Added: 0003302
2010-05-19 09:45GonoszTopiFixed in Revision => 10180
2010-05-19 09:45GonoszTopiStatusfeedback => resolved
2010-05-19 09:45GonoszTopiResolutionreopened => fixed
2010-05-19 09:45GonoszTopiFixed in Version => 2.3.1

Notes
(0003117)
Wuischke   
2009-04-16 18:01   
I fixed this now in SVN, unfortunately I can't fix it after the fact in 2.2.4.

The following bash code should do the job for packaging aMule 2.2.4 for Fedora:

for i in $(ls); do mv $i $i.tmp; iconv -f LATIN1 -t UTF-8 $i.tmp > $i; done
(0003301)
Heffer   
2009-09-20 16:55   
I'd like to reopen this issue. Now that 2.2.6 is released I would assume that the fixes in the SVN have made it into the release. However rpmlint still yields the following results:

[felix@polaris result]$ rpmlint *.rpm
amule.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/amule.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/es/man1/cas.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/alc.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/es/man1/wxcas.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/wxcas.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/fr/man1/amule.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/cas.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/es/man1/amule.1.gz
amule.x86_64: W: file-not-utf8 /usr/share/man/es/man1/alc.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/ed2k.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/es/man1/amulecmd.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/amulecmd.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/amuleweb.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/es/man1/ed2k.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/es/man1/alcc.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/fr/man1/alcc.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/fr/man1/amuled.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/amuled.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/fr/man1/ed2k.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/fr/man1/amuleweb.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/es/man1/amuleweb.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/es/man1/amuled.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/fr/man1/amulecmd.1.gz
amule-nogui.x86_64: W: file-not-utf8 /usr/share/man/hu/man1/alcc.1.gz
xchat-amule.noarch: W: file-not-utf8 /usr/share/man/es/man1/xas.1.gz
xchat-amule.noarch: W: file-not-utf8 /usr/share/man/hu/man1/xas.1.gz
(0003302)
Heffer   
2009-09-20 17:05   
JFYI I currently convert all the manpages using the following scriptlet:

manfiles=`find . -name "*.1"`
for manfile in $manfiles; do
    iconv -f ISO-8859-1 -t UTF-8 < $manfile > $manfile.utf8
    touch -r $manfile $manfile.utf8
    mv -f $manfile.utf8 $manfile
done