[BZ#756901] Meld breaks while initialization
Submitted by Łukasz Grzesik
Link to original bug (#756901)
Description
Environment: Windows 10 64b (I think it doesn't matter so much, all Windows might be affected) Locale: polish Python 2.7, Libs installed as on meldmerge wiki
The windows user contain a polish "Ł" character (probably other "national" characters will also cause this).
Tried with Meld 3.14 installer (process was hanging on the process list), then moved to the src 3.15 release.
Traceback (most recent call last): File "D:\Programs\meld-3.15.0\meld\meldapp.py", line 94, in do_command_line window.append_new_comparison() File "D:\Programs\meld-3.15.0\meld\meldwindow.py", line 623, in append_new_comparison doc = newdifftab.NewDiffTab(self) File "D:\Programs\meld-3.15.0\meld\newdifftab.py", line 50, in init chooser.set_current_folder(default_path) Exception: NieprawidĹ'owa sekwencja bajtĂłw na wejĹ>ciu konwersji (eng: Wrong byte sequence on conversion input)
Possible cause/hints for resolving the problem: Might be related to http://bugs.python.org/issue13207 - problems with os.path.expanduser("~"). When I tried make meld to work (just need this tool, because its soo great) I set the default_path meld in meld\newdifftab.py:48 to a static path - then meld started to work (fine for me, but might be helpful for others). ...
default_path = os.path.expanduser("~")
default_path = "D:\Programs\meld\workdir"
...
HTH Lukas