bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] Why iconv is locale dependent?


From: tomas
Subject: [bug-gnu-libiconv] Why iconv is locale dependent?
Date: Mon, 02 Jan 2017 13:39:56 -0200
User-agent: Roundcube Webmail/1.0.2

Hi

First of all, I'd like to thank you all for maintaining libiconv for free. It is a great job!

I am writing you because I couldn't understand why iconv (and libiconv also, I suppose) is locale-dependent. My test is the following bash script:

#!/bin/bash

declare LANG=
declare LC_ALL=
iconv -f UTF-8 -t ASCII//TRANSLIT <<EOF
tomás
EOF

declare LANG=en_US.UTF-8
declare LC_ALL=
iconv -f UTF-8 -t ASCII//TRANSLIT <<EOF
tomás
EOF

Since iconv is a tool for converting between encodings why is it dependent of locale configuration?

Regards,
Tomás



reply via email to

[Prev in Thread] Current Thread [Next in Thread]