From mboxrd@z Thu Jan 1 00:00:00 1970 From: patroclo7@gmail.com (Giorgio Lando) Date: Sat, 05 Jan 2008 22:46:43 +0100 Subject: [sup-talk] the proper way of determining the encoding Message-ID: <1199569265-sup-4567@clarabella.clarabella> I had initially some problems with encoding in sup (accented chars were not displayed). So I have looked in lib/sup.rb and I have seen that sup tries to determine the $encoding from the $ctype, determined on its turn by LC_CTYPE and LANG. This failed in my case (I do not know why: my $LANG is it_IT and my $LC_ALL - implying $LC_CTYPE - is it_IT at euro). Anyway I guess that sup could/should use the environment variable $CHARSET, when it is defined, and resort to other methods only if $CHARSET is not defined. Or at least I have been able to fix my issue with encodings by changing the 55th line of lib/sup.rb in the following way: $encoding = ENV["CHARSET"] Cheers Giorgio