[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] utf-8 script encoding
---
Does this patch help?
bin/sup | 1 +
bin/sup-add | 1 +
bin/sup-config | 1 +
bin/sup-dump | 1 +
bin/sup-recover-sources | 1 +
bin/sup-sync | 1 +
bin/sup-sync-back | 1 +
bin/sup-tweak-labels | 1 +
lib/sup.rb | 1 +
lib/sup/account.rb | 1 +
lib/sup/buffer.rb | 1 +
lib/sup/colormap.rb | 1 +
lib/sup/contact.rb | 1 +
lib/sup/crypto.rb | 1 +
lib/sup/draft.rb | 1 +
lib/sup/ferret_index.rb | 1 +
lib/sup/hook.rb | 1 +
lib/sup/horizontal-selector.rb | 1 +
lib/sup/imap.rb | 1 +
lib/sup/index.rb | 1 +
lib/sup/interactive-lock.rb | 1 +
lib/sup/keymap.rb | 1 +
lib/sup/label.rb | 1 +
lib/sup/logger.rb | 1 +
lib/sup/maildir.rb | 1 +
lib/sup/mbox.rb | 1 +
lib/sup/mbox/loader.rb | 1 +
lib/sup/mbox/ssh-file.rb | 1 +
lib/sup/mbox/ssh-loader.rb | 1 +
lib/sup/message-chunks.rb | 1 +
lib/sup/message.rb | 1 +
lib/sup/mode.rb | 1 +
lib/sup/modes/buffer-list-mode.rb | 1 +
lib/sup/modes/completion-mode.rb | 1 +
lib/sup/modes/compose-mode.rb | 1 +
lib/sup/modes/console-mode.rb | 1 +
lib/sup/modes/contact-list-mode.rb | 1 +
lib/sup/modes/edit-message-mode.rb | 1 +
lib/sup/modes/file-browser-mode.rb | 1 +
lib/sup/modes/forward-mode.rb | 1 +
lib/sup/modes/help-mode.rb | 1 +
lib/sup/modes/inbox-mode.rb | 1 +
lib/sup/modes/label-list-mode.rb | 1 +
lib/sup/modes/label-search-results-mode.rb | 1 +
lib/sup/modes/line-cursor-mode.rb | 1 +
lib/sup/modes/log-mode.rb | 1 +
lib/sup/modes/person-search-results-mode.rb | 1 +
lib/sup/modes/poll-mode.rb | 1 +
lib/sup/modes/reply-mode.rb | 1 +
lib/sup/modes/resume-mode.rb | 1 +
lib/sup/modes/scroll-mode.rb | 1 +
lib/sup/modes/search-results-mode.rb | 1 +
lib/sup/modes/text-mode.rb | 1 +
lib/sup/modes/thread-index-mode.rb | 1 +
lib/sup/modes/thread-view-mode.rb | 1 +
lib/sup/person.rb | 1 +
lib/sup/poll.rb | 1 +
lib/sup/rfc2047.rb | 1 +
lib/sup/sent.rb | 1 +
lib/sup/source.rb | 1 +
lib/sup/tagger.rb | 1 +
lib/sup/textfield.rb | 1 +
lib/sup/thread.rb | 1 +
lib/sup/undo.rb | 1 +
lib/sup/update.rb | 1 +
lib/sup/util.rb | 1 +
lib/sup/xapian_index.rb | 1 +
67 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/bin/sup b/bin/sup
index 493f48f..f05acc3 100755
--- a/bin/sup
+++ b/bin/sup
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'rubygems'
diff --git a/bin/sup-add b/bin/sup-add
index c53378d..de4f65f 100755
--- a/bin/sup-add
+++ b/bin/sup-add
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'uri'
require 'rubygems'
diff --git a/bin/sup-config b/bin/sup-config
index b37e0b2..da8777b 100755
--- a/bin/sup-config
+++ b/bin/sup-config
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'rubygems'
require 'highline/import'
diff --git a/bin/sup-dump b/bin/sup-dump
index 7b33be5..78e388a 100755
--- a/bin/sup-dump
+++ b/bin/sup-dump
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'rubygems'
require 'trollop'
diff --git a/bin/sup-recover-sources b/bin/sup-recover-sources
index 43fa5f6..d4a9170 100755
--- a/bin/sup-recover-sources
+++ b/bin/sup-recover-sources
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'optparse'
diff --git a/bin/sup-sync b/bin/sup-sync
index 5e89dac..184d740 100755
--- a/bin/sup-sync
+++ b/bin/sup-sync
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'uri'
require 'rubygems'
diff --git a/bin/sup-sync-back b/bin/sup-sync-back
index 6298c97..ffc863f 100755
--- a/bin/sup-sync-back
+++ b/bin/sup-sync-back
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'rubygems'
require 'uri'
diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
index 9bb97b2..3b7bcc4 100755
--- a/bin/sup-tweak-labels
+++ b/bin/sup-tweak-labels
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'rubygems'
require 'trollop'
diff --git a/lib/sup.rb b/lib/sup.rb
index 144f5e3..e158249 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'rubygems'
require 'yaml'
require 'zlib'
diff --git a/lib/sup/account.rb b/lib/sup/account.rb
index bf8a8a0..fc655b9 100644
--- a/lib/sup/account.rb
+++ b/lib/sup/account.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class Account < Person
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
index 06923bd..cb045fc 100644
--- a/lib/sup/buffer.rb
+++ b/lib/sup/buffer.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'etc'
require 'thread'
diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
index c4a4024..acaf996 100644
--- a/lib/sup/colormap.rb
+++ b/lib/sup/colormap.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Curses
COLOR_DEFAULT = -1
end
diff --git a/lib/sup/contact.rb b/lib/sup/contact.rb
index c489aaf..25bf84a 100644
--- a/lib/sup/contact.rb
+++ b/lib/sup/contact.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ContactManager
diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
index fb2661a..072a30c 100644
--- a/lib/sup/crypto.rb
+++ b/lib/sup/crypto.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class CryptoManager
diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb
index 5ea2935..740ec6b 100644
--- a/lib/sup/draft.rb
+++ b/lib/sup/draft.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class DraftManager
diff --git a/lib/sup/ferret_index.rb b/lib/sup/ferret_index.rb
index 4a2cc76..05bc5b2 100644
--- a/lib/sup/ferret_index.rb
+++ b/lib/sup/ferret_index.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'ferret'
module Redwood
diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb
index 3bf9823..b42b223 100644
--- a/lib/sup/hook.rb
+++ b/lib/sup/hook.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class HookManager
diff --git a/lib/sup/horizontal-selector.rb b/lib/sup/horizontal-selector.rb
index aef16d4..608703f 100644
--- a/lib/sup/horizontal-selector.rb
+++ b/lib/sup/horizontal-selector.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class HorizontalSelector
diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb
index bdb9e15..5160e5c 100644
--- a/lib/sup/imap.rb
+++ b/lib/sup/imap.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'uri'
require 'net/imap'
require 'stringio'
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
index 87d8d52..829e6a5 100644
--- a/lib/sup/index.rb
+++ b/lib/sup/index.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
## Index interface, subclassed by Ferret indexer.
require 'fileutils'
diff --git a/lib/sup/interactive-lock.rb b/lib/sup/interactive-lock.rb
index 92a5ead..5150c89 100644
--- a/lib/sup/interactive-lock.rb
+++ b/lib/sup/interactive-lock.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'fileutils'
module Redwood
diff --git a/lib/sup/keymap.rb b/lib/sup/keymap.rb
index cb039e4..74e1599 100644
--- a/lib/sup/keymap.rb
+++ b/lib/sup/keymap.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class Keymap
diff --git a/lib/sup/label.rb b/lib/sup/label.rb
index 67474c2..f035dd8 100644
--- a/lib/sup/label.rb
+++ b/lib/sup/label.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class LabelManager
diff --git a/lib/sup/logger.rb b/lib/sup/logger.rb
index ccaeae0..7912ce2 100644
--- a/lib/sup/logger.rb
+++ b/lib/sup/logger.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require "sup"
require 'stringio'
require 'thread'
diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
index c2bd27a..b3935d3 100644
--- a/lib/sup/maildir.rb
+++ b/lib/sup/maildir.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'rmail'
require 'uri'
diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
index 7af40dd..8973f06 100644
--- a/lib/sup/mbox.rb
+++ b/lib/sup/mbox.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require "sup/mbox/loader"
require "sup/mbox/ssh-file"
require "sup/mbox/ssh-loader"
diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb
index 54d227d..031a744 100644
--- a/lib/sup/mbox/loader.rb
+++ b/lib/sup/mbox/loader.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'rmail'
require 'uri'
require 'set'
diff --git a/lib/sup/mbox/ssh-file.rb b/lib/sup/mbox/ssh-file.rb
index 4ae4bba..6f1c5ee 100644
--- a/lib/sup/mbox/ssh-file.rb
+++ b/lib/sup/mbox/ssh-file.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'net/ssh'
module Redwood
diff --git a/lib/sup/mbox/ssh-loader.rb b/lib/sup/mbox/ssh-loader.rb
index e422a48..75875d5 100644
--- a/lib/sup/mbox/ssh-loader.rb
+++ b/lib/sup/mbox/ssh-loader.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'net/ssh'
module Redwood
diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
index 581b707..8f0be32 100644
--- a/lib/sup/message-chunks.rb
+++ b/lib/sup/message-chunks.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'tempfile'
## Here we define all the "chunks" that a message is parsed
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index f3ac874..03fd831 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'time'
module Redwood
diff --git a/lib/sup/mode.rb b/lib/sup/mode.rb
index c8ad0cc..899a9fb 100644
--- a/lib/sup/mode.rb
+++ b/lib/sup/mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'open3'
module Redwood
diff --git a/lib/sup/modes/buffer-list-mode.rb b/lib/sup/modes/buffer-list-mode.rb
index 1554cae..175b37a 100644
--- a/lib/sup/modes/buffer-list-mode.rb
+++ b/lib/sup/modes/buffer-list-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class BufferListMode < LineCursorMode
diff --git a/lib/sup/modes/completion-mode.rb b/lib/sup/modes/completion-mode.rb
index 3cb2fad..62aeab0 100644
--- a/lib/sup/modes/completion-mode.rb
+++ b/lib/sup/modes/completion-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class CompletionMode < ScrollMode
diff --git a/lib/sup/modes/compose-mode.rb b/lib/sup/modes/compose-mode.rb
index f0d1e23..90f6f18 100644
--- a/lib/sup/modes/compose-mode.rb
+++ b/lib/sup/modes/compose-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ComposeMode < EditMessageMode
diff --git a/lib/sup/modes/console-mode.rb b/lib/sup/modes/console-mode.rb
index f0c626e..c4e51fe 100644
--- a/lib/sup/modes/console-mode.rb
+++ b/lib/sup/modes/console-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'pp'
module Redwood
diff --git a/lib/sup/modes/contact-list-mode.rb b/lib/sup/modes/contact-list-mode.rb
index 49804ad..63d1e2f 100644
--- a/lib/sup/modes/contact-list-mode.rb
+++ b/lib/sup/modes/contact-list-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
module CanAliasContacts
diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
index 8849271..618b3ef 100644
--- a/lib/sup/modes/edit-message-mode.rb
+++ b/lib/sup/modes/edit-message-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'tempfile'
require 'socket' # just for gethostname!
require 'pathname'
diff --git a/lib/sup/modes/file-browser-mode.rb b/lib/sup/modes/file-browser-mode.rb
index b92468d..976a8e8 100644
--- a/lib/sup/modes/file-browser-mode.rb
+++ b/lib/sup/modes/file-browser-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'pathname'
module Redwood
diff --git a/lib/sup/modes/forward-mode.rb b/lib/sup/modes/forward-mode.rb
index 9428b4b..f5903f3 100644
--- a/lib/sup/modes/forward-mode.rb
+++ b/lib/sup/modes/forward-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ForwardMode < EditMessageMode
diff --git a/lib/sup/modes/help-mode.rb b/lib/sup/modes/help-mode.rb
index b98f131..6e3274e 100644
--- a/lib/sup/modes/help-mode.rb
+++ b/lib/sup/modes/help-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class HelpMode < TextMode
diff --git a/lib/sup/modes/inbox-mode.rb b/lib/sup/modes/inbox-mode.rb
index 6c2244a..177c098 100644
--- a/lib/sup/modes/inbox-mode.rb
+++ b/lib/sup/modes/inbox-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'sup'
module Redwood
diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
index f0084a9..50a4744 100644
--- a/lib/sup/modes/label-list-mode.rb
+++ b/lib/sup/modes/label-list-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class LabelListMode < LineCursorMode
diff --git a/lib/sup/modes/label-search-results-mode.rb b/lib/sup/modes/label-search-results-mode.rb
index bca51d4..d45b764 100644
--- a/lib/sup/modes/label-search-results-mode.rb
+++ b/lib/sup/modes/label-search-results-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class LabelSearchResultsMode < ThreadIndexMode
diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb
index 1bd4ed1..0108592 100644
--- a/lib/sup/modes/line-cursor-mode.rb
+++ b/lib/sup/modes/line-cursor-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
## extends ScrollMode to have a line-based cursor.
diff --git a/lib/sup/modes/log-mode.rb b/lib/sup/modes/log-mode.rb
index de320ce..0489a32 100644
--- a/lib/sup/modes/log-mode.rb
+++ b/lib/sup/modes/log-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'stringio'
module Redwood
diff --git a/lib/sup/modes/person-search-results-mode.rb b/lib/sup/modes/person-search-results-mode.rb
index fc09126..656f394 100644
--- a/lib/sup/modes/person-search-results-mode.rb
+++ b/lib/sup/modes/person-search-results-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class PersonSearchResultsMode < ThreadIndexMode
diff --git a/lib/sup/modes/poll-mode.rb b/lib/sup/modes/poll-mode.rb
index cf61343..2cb8d47 100644
--- a/lib/sup/modes/poll-mode.rb
+++ b/lib/sup/modes/poll-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class PollMode < LogMode
diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
index 3d39a8a..b4f8bde 100644
--- a/lib/sup/modes/reply-mode.rb
+++ b/lib/sup/modes/reply-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ReplyMode < EditMessageMode
diff --git a/lib/sup/modes/resume-mode.rb b/lib/sup/modes/resume-mode.rb
index e527542..4e4346f 100644
--- a/lib/sup/modes/resume-mode.rb
+++ b/lib/sup/modes/resume-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ResumeMode < EditMessageMode
diff --git a/lib/sup/modes/scroll-mode.rb b/lib/sup/modes/scroll-mode.rb
index c131425..7b1aefd 100644
--- a/lib/sup/modes/scroll-mode.rb
+++ b/lib/sup/modes/scroll-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ScrollMode < Mode
diff --git a/lib/sup/modes/search-results-mode.rb b/lib/sup/modes/search-results-mode.rb
index 121e817..59e83af 100644
--- a/lib/sup/modes/search-results-mode.rb
+++ b/lib/sup/modes/search-results-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class SearchResultsMode < ThreadIndexMode
diff --git a/lib/sup/modes/text-mode.rb b/lib/sup/modes/text-mode.rb
index 7c9e7d8..251b994 100644
--- a/lib/sup/modes/text-mode.rb
+++ b/lib/sup/modes/text-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class TextMode < ScrollMode
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
index ccda50b..617cf67 100644
--- a/lib/sup/modes/thread-index-mode.rb
+++ b/lib/sup/modes/thread-index-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'set'
module Redwood
diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
index 8b5642e..ca6108f 100644
--- a/lib/sup/modes/thread-view-mode.rb
+++ b/lib/sup/modes/thread-view-mode.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class ThreadViewMode < LineCursorMode
diff --git a/lib/sup/person.rb b/lib/sup/person.rb
index 4b1c80b..5256cc4 100644
--- a/lib/sup/person.rb
+++ b/lib/sup/person.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class Person
diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb
index 4f30505..ac60373 100644
--- a/lib/sup/poll.rb
+++ b/lib/sup/poll.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'thread'
module Redwood
diff --git a/lib/sup/rfc2047.rb b/lib/sup/rfc2047.rb
index f31faa1..8fe645d 100644
--- a/lib/sup/rfc2047.rb
+++ b/lib/sup/rfc2047.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
## from: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/101949
# $Id: rfc2047.rb,v 1.4 2003/04/18 20:55:56 sam Exp $
diff --git a/lib/sup/sent.rb b/lib/sup/sent.rb
index 87ca6c6..8c48259 100644
--- a/lib/sup/sent.rb
+++ b/lib/sup/sent.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class SentManager
diff --git a/lib/sup/source.rb b/lib/sup/source.rb
index 6fe7bfb..134cda9 100644
--- a/lib/sup/source.rb
+++ b/lib/sup/source.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require "sup/rfc2047"
module Redwood
diff --git a/lib/sup/tagger.rb b/lib/sup/tagger.rb
index d62f340..0a04b0c 100644
--- a/lib/sup/tagger.rb
+++ b/lib/sup/tagger.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
class Tagger
diff --git a/lib/sup/textfield.rb b/lib/sup/textfield.rb
index 9afeb34..8072f83 100644
--- a/lib/sup/textfield.rb
+++ b/lib/sup/textfield.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
## a fully-functional text field supporting completions, expansions,
diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
index 2300305..17d709d 100644
--- a/lib/sup/thread.rb
+++ b/lib/sup/thread.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
## Herein lies all the code responsible for threading messages. It's
## basically an online version of the JWZ threading algorithm:
## http://www.jwz.org/doc/threading.html
diff --git a/lib/sup/undo.rb b/lib/sup/undo.rb
index 9ccf84a..2ca7d02 100644
--- a/lib/sup/undo.rb
+++ b/lib/sup/undo.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
## Implements a single undo list for the Sup instance
diff --git a/lib/sup/update.rb b/lib/sup/update.rb
index d386801..b689b51 100644
--- a/lib/sup/update.rb
+++ b/lib/sup/update.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Redwood
## Classic listener/broadcaster paradigm. Handles communication between various
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
index 25af762..5bd93b3 100644
--- a/lib/sup/util.rb
+++ b/lib/sup/util.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'thread'
require 'lockfile'
require 'mime/types'
diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb
index 955ec8f..2919ce6 100644
--- a/lib/sup/xapian_index.rb
+++ b/lib/sup/xapian_index.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'xapian'
require 'set'
--
1.6.3.3