=== modified file 'ChangeLog'
--- ChangeLog	2011-10-04 13:27:45 +0000
+++ ChangeLog	2012-02-03 15:57:34 +0000
@@ -13,6 +13,9 @@
   * don't fail when running 'show listening' under fakeroot (LP: #812516)
   * add syntax-check to Makefile
   * add man-check to Makefile
+  * src/util.py: use codes.open(..., 'UTF-8') to better support non-english
+    locates in third-party frontends. Analysis and patch suggestion thanks to
+    S. Nizio. (LP: #921758)
 
  -- Jamie Strandboge <jamie@ubuntu.com>  Thu, 18 Aug 2011 12:00:05 -0500
 

=== modified file 'src/util.py'
--- src/util.py	2011-07-30 15:36:40 +0000
+++ src/util.py	2012-02-02 23:47:48 +0000
@@ -1,6 +1,6 @@
 '''util.py: utility functions for ufw'''
 #
-# Copyright 2008-2011 Canonical Ltd.
+# Copyright 2008-2012 Canonical Ltd.
 #
 #    This program is free software: you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License version 3,
@@ -15,6 +15,7 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+import codecs
 import errno
 import fcntl
 import os
@@ -203,7 +204,7 @@
 def open_file_read(fn):
     '''Opens the specified file read-only'''
     try:
-        orig = open(fn, 'r')
+        orig = codecs.open(fn, 'r', 'UTF-8')
     except Exception:
         raise
 

