version.txt is in latin-1 (instead of utf-8)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • t4nk
    Swordsman
    • May 2016
    • 336

    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
  • redlumf
    Scout
    • Aug 2015
    • 25

    #2
    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

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9637

      #3
      Thanks for the problem and the fix - this is kind of the ideal model for a bugfix thread
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎