changeset 4567:6ac8b2f4cdac

remove unused wikiutil.decodeWindowsPath function
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 10 Feb 2009 13:41:20 +0100
parents 2eaf4b42b400
children def073ae536c
files MoinMoin/script/migration/wikiutil160a.py MoinMoin/wikiutil.py
diffstat 2 files changed, 0 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/wikiutil160a.py	Tue Feb 10 13:21:59 2009 +0100
+++ b/MoinMoin/script/migration/wikiutil160a.py	Tue Feb 10 13:41:20 2009 +0100
@@ -32,26 +32,6 @@
 ### Getting data from user/Sending data to user
 #############################################################################
 
-def decodeWindowsPath(text):
-    """ Decode Windows path names correctly. This is needed because many CGI
-    servers follow the RFC recommendation and re-encode the path_info variable
-    according to the file system semantics.
-
-    @param text: the text to decode, string
-    @rtype: unicode
-    @return: decoded text
-    """
-
-    import locale
-    cur_charset = locale.getdefaultlocale()[1]
-    try:
-        return unicode(text, 'utf-8')
-    except UnicodeError:
-        try:
-            return unicode(text, cur_charset, 'replace')
-        except LookupError:
-            return unicode(text, 'iso-8859-1', 'replace')
-
 def decodeUnknownInput(text):
     """ Decode unknown input, like text attachments
 
--- a/MoinMoin/wikiutil.py	Tue Feb 10 13:21:59 2009 +0100
+++ b/MoinMoin/wikiutil.py	Tue Feb 10 13:41:20 2009 +0100
@@ -41,26 +41,6 @@
 ### Getting data from user/Sending data to user
 #############################################################################
 
-def decodeWindowsPath(text):
-    """ Decode Windows path names correctly. This is needed because many CGI
-    servers follow the RFC recommendation and re-encode the path_info variable
-    according to the file system semantics.
-
-    @param text: the text to decode, string
-    @rtype: unicode
-    @return: decoded text
-    """
-
-    import locale
-    cur_charset = locale.getdefaultlocale()[1]
-    try:
-        return unicode(text, 'utf-8')
-    except UnicodeError:
-        try:
-            return unicode(text, cur_charset, 'replace')
-        except LookupError:
-            return unicode(text, 'iso-8859-1', 'replace')
-
 def decodeUnknownInput(text):
     """ Decode unknown input, like text attachments