TIP: Click on subject to list as thread! ANSI
echo: linux
to: MAURICE KINAL
from: KEES VAN EETEN
date: 2016-03-11 15:06:00
subject: just testing randomness i

Hello Maurice!

11 Mar 16 03:52, you wrote to Benny Pedersen:

 MK> As per any document of valid character set aliases, there is no such thing
 MK> as LATIN-1.  Some people think it is ISO-8859-1 but the closest alias it
 MK> has in reality is LATIN1.

 There is a LATIN-8 in the list of aliases supported by iconv, so why not add
 LATIN-1, LATIN-x to the over 860 aliases already there.

 I found the following in:
 Ubuntu - /usr/lib/gconv/gconv-modules
 Debian - /usr/lib/x86_64-linux-gnu/gconv/gconv-modules

#       from                    to                      module          cost
alias   ISO-IR-100//            ISO-8859-1//
alias   ISO_8859-1:1987//       ISO-8859-1//
alias   ISO_8859-1//            ISO-8859-1//
alias   ISO8859-1//             ISO-8859-1//
alias   ISO88591//              ISO-8859-1//
alias   LATIN1//                ISO-8859-1//
alias   L1//                    ISO-8859-1//
alias   IBM819//                ISO-8859-1//
alias   CP819//                 ISO-8859-1//
alias   CSISOLATIN1//           ISO-8859-1//
alias   8859_1//                ISO-8859-1//
alias   OSF00010001//           ISO-8859-1//
module  ISO-8859-1//            INTERNAL                ISO8859-1       1
module  INTERNAL                ISO-8859-1//            ISO8859-1       1

So if you add the following line above: alias LATIN1//
alias  LATIN-1//          ISO-8859-1//
and execute iconvconfig to create the cachefile,
all your pains will be over. ;)

 MK>   It might work with Microsoft's CP1250 but I
 MK> cannot say for sure not having any microsoft products to test it on or
 MK> any
 MK> credible documentation on LATIN-1 as an alias for anything.  All I know is
 MK> that it doesn't work with glibc's iconv as shown using;

 MK>   :read !echo -e "A M\xf8\xf8se once bit my sister..." | iconv -f
 MK> latin-1 -t utf8
 MK> iconv: conversion from `latin-1' is not supported
 MK> Try `iconv --help' or `iconv --usage' for more information.

echo -e "A M\xf8\xf8se once bit my sister..." | iconv -f latin-1 -t utf8
A Møøse once bit my sister...

 It looks good here, but will probably be a mess when it gets converted back
 to LATIN-1



Kees

--- GoldED+/LNX 1.1.5
* Origin: As for me, all I know is that, I know nothing. (2:280/5003.4)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.