Rev 3529: (MvG) Improve UnicodeFilenameFeature. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Mon Jul 7 20:18:16 BST 2008


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 3529
revision-id:pqm at pqm.ubuntu.com-20080707191804-ywaxy9kcyvv8yhj2
parent: pqm at pqm.ubuntu.com-20080707151531-ra9moj8zrk9tiw2a
parent: martin.vgagern at gmx.net-20080707092427-iyeuut7ehf6x7jgs
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2008-07-07 20:18:04 +0100
message:
  (MvG) Improve UnicodeFilenameFeature.
modified:
  bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
    ------------------------------------------------------------
    revno: 3526.2.1
    revision-id:martin.vgagern at gmx.net-20080707092427-iyeuut7ehf6x7jgs
    parent: pqm at pqm.ubuntu.com-20080704171330-ieh195xj7su2k2xq
    committer: Martin von Gagern <Martin.vGagern at gmx.net>
    branch nick: UnicodeFilenameFeature
    timestamp: Mon 2008-07-07 11:24:27 +0200
    message:
      Improved UnicodeFilenameFeature.
      The old version incorrectly identified e.g. EUC-JP as supporting unicode.
    modified:
      bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2008-07-02 01:40:02 +0000
+++ b/bzrlib/tests/__init__.py	2008-07-07 09:24:27 +0000
@@ -3073,7 +3073,11 @@
 
     def _probe(self):
         try:
-            os.stat(u'\u03b1')
+            # Check for character combinations unlikely to be covered by any
+            # single non-unicode encoding. We use the characters
+            # - greek small letter alpha (U+03B1) and
+            # - braille pattern dots-123456 (U+283F).
+            os.stat(u'\u03b1\u283f')
         except UnicodeEncodeError:
             return False
         except (IOError, OSError):




More information about the bazaar-commits mailing list