Index: lib/booh/booh-lib.rb
===================================================================
RCS file: /opt/cvs/booh/lib/booh/booh-lib.rb,v
retrieving revision 1.84
diff -u -r1.84 booh-lib.rb
--- lib/booh/booh-lib.rb	31 May 2008 14:13:36 -0000	1.84
+++ lib/booh/booh-lib.rb	31 May 2008 22:37:46 -0000
@@ -43,6 +43,12 @@
 module Booh
     $verbose_level = 2
     $CURRENT_CHARSET = `locale charmap`.chomp
+    #- check charset availability. a locale configuration of C or POSIX yields the unsupported 'ANSI_X3.4-1968'.
+    begin
+        REXML::XMLDecl.new(REXML::XMLDecl::DEFAULT_VERSION, $CURRENT_CHARSET)
+    rescue
+        $CURRENT_CHARSET = 'UTF-8'
+    end
     $convert = 'convert -interlace line +profile "*"'
     $convert_enhance = '-contrast -enhance -normalize'
 

