Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Subsystem for Linux git mergetool meld UnicodeDecodeError

I'm WSL (Windows Subsystem for Linux) user. I use WSL to simply rsync source code between my host and remote compiling machine (RedHat). I found such a article:

https://www.deptagency.com/en-gb/story/using-meld-as-a-git-merge-tool-on-windows/

which triggers and run GUI windows meld from WSL.

But after following steps from this article, I'm getting this err msg (I've checked if windows EoL were passed):

Traceback (most recent call last): File "bin/meld", line 328, in structured_log_adapter UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 103: invalid start byte

Do you have any ideas?

Thanks in advance, BR

like image 577
Sebastian Avatar asked Aug 01 '18 21:08

Sebastian


People also ask

How does meld work?

Meld helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems. "Meld helps you review code changes and understand patches.

What is git merge tool?

Use git mergetool to run one of several merge utilities to resolve merge conflicts. It is typically run after git merge. If one or more <file> parameters are given, the merge tool program will be run to resolve differences on each file (skipping those without conflicts).


1 Answers

I am not sure if it would answer this question, but I needed to run meld within WSL2. Tried apt install meld but since that it's Windows, it doesn't run GTK app. So what I have done was to simply use symbolic link between Windows version of Meld:

ln -s /mnt/c/Program\ Files\ \(x86\)/Meld/Meld.exe /usr/local/bin/meld

And voila!

like image 88
Eren Atas Avatar answered Sep 29 '22 17:09

Eren Atas