Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old October 12, 2016, 23:46   #1
t4nk
Adept
 
Join Date: May 2016
Posts: 249
t4nk is on a distinguished road
version.txt is in latin-1 (instead of utf-8)

And maybe all help files. Specifically, "Pietilš":
Code:
$ perl -mcharnames -nE '/Timo (.*)/ and do {
    printf "%s\n%vx\n", $1, $1;
    for (split //, $1) {
        printf "%x -> %s\n", ord $_, charnames::viacode(ord $_)
   }
}
' < version.txt
Pietil�,
50.69.65.74.69.6c.e4.2c
50 -> LATIN CAPITAL LETTER P
69 -> LATIN SMALL LETTER I
65 -> LATIN SMALL LETTER E
74 -> LATIN SMALL LETTER T
69 -> LATIN SMALL LETTER I
6c -> LATIN SMALL LETTER L
e4 -> LATIN SMALL LETTER A WITH DIAERESIS
2c -> COMMA
The byte (aka "char" in some obsolete programming languages ) 0xe4 (DIAERESIS thing) is not valid utf-8; it cannot be displayed with x11, sdl and gcu. It also causes assertion failure in textui2, so please fix
t4nk is offline   Reply With Quote
Old October 13, 2016, 18:31   #2
redlumf
Rookie
 
Join Date: Aug 2015
Posts: 24
redlumf is on a distinguished road
On a linux system something like that
Code:
iconv -f iso-8859-1 -t utf8 help/version.txt >newfilename.txt
would fix it.

After, inspection/checking you can then do a
Code:
mv newfilename.txt help/version.txt
redlumf is offline   Reply With Quote
Old October 13, 2016, 21:51   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,660
Donated: $60
Nick is on a distinguished road
Thanks for the problem and the fix - this is kind of the ideal model for a bugfix thread
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Utf-8 Nick Oook! 11 September 10, 2013 13:38
Angband requires UTF-8 support looney Vanilla 0 June 17, 2013 12:36
UTF-8 help ? bron Development 4 June 14, 2012 20:46
Error : Angband requires UTF-8 support Tobias Development 0 January 6, 2012 16:36
Include xchar or utf-8 in future? hernaldo ToME 1 July 31, 2010 22:20


All times are GMT +1. The time now is 19:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.