From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (158-37-227-78.hib.no [158.37.227.78]) by mx.google.com with ESMTPS id w20sm7750632eeh.18.2010.11.04.06.21.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Nov 2010 06:21:20 -0700 (PDT) From: Gaute Hope To: sup-devel Subject: [PATCH] More UTF-8 support; load all labels as UTF-8 Date: Thu, 04 Nov 2010 14:21:20 +0100 Message-Id: <1288876769-sup-4049@qwerzila> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-1288876880-669137-13911-3783-1-=" --=-1288876880-669137-13911-3783-1-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Even if the labels.txt file is read as UTF-8 apparantly after a label is symoblized, it will be US-ASCII on .to_s if possible. This patch forces UTF-8. If you use L to select a US-ASCII label (i.e. Sent) then want to narrow the search by pressing L again and use tab to match against an UTF-8 label sup crashes. Also fixes one whitespace error in bin/sup --- bin/sup | 4 +++- lib/sup/buffer.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/sup b/bin/sup index fd1dde8..10be161 100755 --- a/bin/sup +++ b/bin/sup @@ -49,7 +49,7 @@ No variables. No return value. EOS -Redwood::HookManager.register "shutdown", <