#111 UnicodeError in base.fixurl

v0.2
closed-fixed
7
2010-04-08
2010-03-31
Yannick Voglaire
No

(From https://sourceforge.net/tracker/?func=detail&atid=988431&aid=2796407&group_id=204144 )
I also get a strange Unicode-related message:

Traceback (most recent call last):
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/decorators.py",
line 699, in _on_load
self._adjust_editor()
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/decorators.py",
line 757, in _adjust_editor
editor_class.__init__(self._editor, self, file)
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line
403, in __init__
self.init(file, self._window_context)
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line
113, in init
self.__parse()
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line
339, in __parse
master_file = self.__master_file
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py",
line 1360, in fake_function
result = func(*vargs, **kwargs)
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line
379, in __master_file
property_file = PropertyFile(self._file)
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/__init__.py",
line 68, in __init__
self.__log.debug("File %s not found, creating empty one" %
self.__file)
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line
1345, in __str__
return self.uri
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line
1219, in uri
return fixurl(self._uri.geturl())
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py",
line 1360, in fake_function
result = func(*vargs, **kwargs)
File ".gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line
1112, in fixurl
netloc = parsed.netloc.encode('idna')
File "/usr/lib/python2.6/encodings/idna.py", line 164, in encode
result.append(ToASCII(label))
File "/usr/lib/python2.6/encodings/idna.py", line 73, in ToASCII
raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long

Discussion

    • priority: 5 --> 7
    • assigned_to: nobody --> m_zeising
    • summary: UnicodeError in adjust_editor --> UnicodeError in base.fixurl
     
    • assigned_to: m_zeising --> yannickv
    • status: open --> closed-fixed