Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] the proper way of determining the encoding
@ 2008-01-05 21:46 Giorgio Lando
  2008-01-07  6:04 ` William Morgan
  0 siblings, 1 reply; 20+ messages in thread
From: Giorgio Lando @ 2008-01-05 21:46 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-01-18 16:40 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-05 21:46 [sup-talk] the proper way of determining the encoding Giorgio Lando
2008-01-07  6:04 ` William Morgan
2008-01-07  8:44   ` Giorgio Lando
2008-01-07  8:51   ` Giorgio Lando
2008-01-09 18:00     ` William Morgan
2008-01-10  0:39       ` Giorgio Lando
2008-01-13  2:22         ` William Morgan
2008-01-13 13:09           ` Giorgio Lando
2008-01-15 16:30           ` Grant Hollingworth
2008-01-16  1:45             ` William Morgan
2008-01-16  2:20               ` Nicolas Pouillard
2008-01-16  2:57                 ` William Morgan
2008-01-16  3:09                   ` William Morgan
2008-01-16  8:51                     ` Nicolas Pouillard
2008-01-16  3:14                   ` Nicolas Pouillard
2008-01-16  3:23                     ` William Morgan
2008-01-16  3:28                       ` Nicolas Pouillard
2008-01-16  3:38                         ` William Morgan
2008-01-16  8:46                           ` Nicolas Pouillard
2008-01-18 16:40                             ` Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox