aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Cherry <patch0@users.noreply.github.com>2018-01-29 15:54:31 +0000
committerGitHub <noreply@github.com>2018-01-29 15:54:31 +0000
commit9bdd63df6f71ea7322f3d65aa88a79cb17d74b9c (patch)
tree3a4074687ccdb17a440049b243229bb30feac7ef /lib
parentb2468a1977d0982e73b64e4cc80ad8120fa16365 (diff)
parentfa9b1e69d7835bce47990648c6d01fc3f67fcded (diff)
Merge pull request #3 from BytemarkHosting/rip-out-locale
rip out the require 'locale'
Diffstat (limited to 'lib')
-rw-r--r--lib/mauve/sender.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/mauve/sender.rb b/lib/mauve/sender.rb
index e6cc4dd..7a965ab 100644
--- a/lib/mauve/sender.rb
+++ b/lib/mauve/sender.rb
@@ -1,11 +1,6 @@
# encoding: UTF-8
require 'ipaddr'
require 'socket'
-begin
- require 'locale'
-rescue LoadError
- # Do nothing -- these are bonus libraries :)
-end
require 'mauve/mauve_resolv'
require 'mauve/mauve_time'
@@ -153,13 +148,6 @@ module Mauve
update.replace ||= false
#
- # Check the locale charset. This is to maximise the amout of information
- # mauve receives, rather than provide proper sanitized data for the server.
- #
- from_charset = (Locale.current.charset || Locale.charset) if defined?(Locale)
- from_charset ||= "UTF-8"
-
- #
#
#
update.each_field do |field, value|