Crash on UTF-8 SQL Files containing backslashes
I use SSDT for my database projects. I use Meld as my diff & merge tool. It was crashing today on specific files. I was able to narrow it down and make it reproducible. Looks like it will crash when all of the following are true:
- SQL files (i.e. files ending in
.sql
) - with UTF Byte Order Markers (
ef bb bf
) at the front of the file - the file contains a backslash
me@hostname:/tmp$ mkdir test
me@hostname:/tmp$ cd test
me@hostname:/tmp/test$ git init
Initialized empty Git repository in /tmp/test/.git/
✔ /tmp/test [master L|✔]
14:56 $ echo -e "\xef\xbb\xbf--
select foo + '\' + bar;" > foo.sql
✔ /tmp/test [master L|…1]
14:56 $ meld --version
meld 3.18.0
✔ /tmp/test [master L|…1]
14:56 $ meld foo.sql
**
GtkSourceView:ERROR:gtksourcecontextengine.c:5543:update_syntax: assertion failed: (g_slist_length (ce->priv->invalid) <= 1)
Aborted
✘-ABRT /tmp/test [master L|…1]