* [sup-talk] [PATCH] Do nothing on an unknown-8bit encoding.
@ 2008-11-14 13:28 Nicolas Pouillard
2008-11-20 15:18 ` William Morgan
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Pouillard @ 2008-11-14 13:28 UTC (permalink / raw)
---
lib/sup/util.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
index 6a6da5e..f3db95d 100644
--- a/lib/sup/util.rb
+++ b/lib/sup/util.rb
@@ -620,7 +620,7 @@ end
class Iconv
def self.easy_decode target, charset, text
- return text if charset =~ /^x-unknown$/i
+ return text if charset =~ /^(x-unknown|unknown-8bit)$/i
charset = case charset
when /UTF[-_]?8/i: "utf-8"
when /(iso[-_])?latin[-_]?1$/i: "ISO-8859-1"
--
1.5.5.rc3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-20 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-14 13:28 [sup-talk] [PATCH] Do nothing on an unknown-8bit encoding Nicolas Pouillard
2008-11-20 15:18 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox