File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 9
9
* Issue #114: Use ``sys.getfilesystemencoding`` for decoding config in
10
10
``bdist_wininst`` distributions.
11
11
12
+ * Issue #105 and Issue #113: Establish a more robust technique for
13
+ determining the terminal encoding::
14
+
15
+ 1. Try ``getpreferredencoding``
16
+ 2. If that returns US_ASCII or None, try the encoding from
17
+ ``getdefaultlocale``. If that encoding was a "fallback" because Python
18
+ could not figure it out from the environment or OS, encoding remains
19
+ unresolved.
20
+ 3. If the encoding is resolved, then make sure Python actually implements
21
+ the encoding.
22
+ 4. On the event of an error or unknown codec, revert to fallbacks
23
+ (UTF-8 on Darwin, ASCII on everything else).
24
+ 5. On the encoding is 'mac-roman' on Darwin, use UTF-8 as 'mac-roman' was
25
+ a bug on older Python releases.
26
+
27
+ On a side note, it would seem that the encoding only matters for when SVN
28
+ does not yet support ``--xml`` and when getting repository and svn version
29
+ numbers. The ``--xml`` technique should yield UTF-8 according to some
30
+ messages on the SVN mailing lists. So if the version numbers are always
31
+ 7-bit ASCII clean, it may be best to only support the file parsing methods
32
+ for legacy SVN releases and support for SVN without the subprocess command
33
+ would simple go away as support for the older SVNs does.
34
+
12
35
---
13
36
1.4
14
37
---
You can’t perform that action at this time.
0 commit comments