{"action":"created","issue":{"url":"https://api.github.com/repos/ftilmann/latexdiff/issues/81","repository_url":"https://api.github.com/repos/ftilmann/latexdiff","labels_url":"https://api.github.com/repos/ftilmann/latexdiff/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/ftilmann/latexdiff/issues/81/comments","events_url":"https://api.github.com/repos/ftilmann/latexdiff/issues/81/events","html_url":"https://github.com/ftilmann/latexdiff/issues/81","id":204466597,"number":81,"title":"Incompilable diff when using \\glqq","user":{"login":"felixinc","id":7389315,"avatar_url":"https://avatars.githubusercontent.com/u/7389315?v=3","gravatar_id":"","url":"https://api.github.com/users/felixinc","html_url":"https://github.com/felixinc","followers_url":"https://api.github.com/users/felixinc/followers","following_url":"https://api.github.com/users/felixinc/following{/other_user}","gists_url":"https://api.github.com/users/felixinc/gists{/gist_id}","starred_url":"https://api.github.com/users/felixinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixinc/subscriptions","organizations_url":"https://api.github.com/users/felixinc/orgs","repos_url":"https://api.github.com/users/felixinc/repos","events_url":"https://api.github.com/users/felixinc/events{/privacy}","received_events_url":"https://api.github.com/users/felixinc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-01T00:39:29Z","updated_at":"2017-02-01T09:19:28Z","closed_at":"2017-02-01T09:19:28Z","body":"Having two tex-files and using latexdiff can produce uncompilable diff-file. Here is a minimal example\r\n\r\nOld version\r\n```tex\r\n\\documentclass{amsart}\r\n\\usepackage{ngerman}\r\n\\usepackage[utf8]{inputenc} \r\n\\begin{document}\r\nX\r\n\\end{document}\r\n```\r\nNew version\r\n```tex\r\n\\documentclass{amsart}\r\n\\usepackage{ngerman}\r\n\\usepackage[utf8]{inputenc} \r\n\\begin{document}\r\nYyyy „Yyyy“ Yyyy X\r\n\\end{document}\r\n```\r\nResulting in this incompilable diff-file\r\n```tex\r\n\\documentclass{amsart}\r\n\\usepackage{ngerman}\r\n\\usepackage[utf8]{inputenc} \r\n\\RequirePackage[normalem]{ulem} %DIF PREAMBLE\r\n\\RequirePackage{color}\\definecolor{RED}{rgb}{1,0,0}\\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE\r\n\\providecommand{\\DIFadd}[1]{{\\protect\\color{blue}\\uwave{#1}}} %DIF PREAMBLE\r\n\\providecommand{\\DIFdel}[1]{{\\protect\\color{red}\\sout{#1}}}                      %DIF PREAMBLE\r\n\\providecommand{\\DIFaddbegin}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFaddend}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFdelbegin}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFdelend}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFaddFL}[1]{\\DIFadd{#1}} %DIF PREAMBLE\r\n\\providecommand{\\DIFdelFL}[1]{\\DIFdel{#1}} %DIF PREAMBLE\r\n\\providecommand{\\DIFaddbeginFL}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFaddendFL}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFdelbeginFL}{} %DIF PREAMBLE\r\n\\providecommand{\\DIFdelendFL}{} %DIF PREAMBLE\r\n\r\n\\begin{document}\r\n\\DIFaddbegin \\DIFadd{Yyyy „Yyyy“ Yyyy }\\DIFaddend X\r\n\\end{document}\r\n```\r\nWhen quotes are written explicitly as \\qlqq and \\qrqq instead of „ and “ the result looks like this\r\n```tex\r\n\\begin{document}\r\n\\DIFaddbegin \\DIFadd{Yyyy }\\glqq \\DIFadd{Yyyy}\\grqq \\DIFadd{Yyyy }\\DIFaddend X\r\n\\end{document}\r\n```\r\nChanging the original diff-file acoordingly solves the problem. Funny, only the left quotation mark seems to make problems\r\n```tex\r\n\\begin{document}\r\n\\DIFaddbegin \\DIFadd{Yyyy }„\\DIFadd{Yyyy“ Yyyy }\\DIFaddend X\r\n\\end{document}\r\n```"},"comment":{"url":"https://api.github.com/repos/ftilmann/latexdiff/issues/comments/276609166","html_url":"https://github.com/ftilmann/latexdiff/issues/81#issuecomment-276609166","issue_url":"https://api.github.com/repos/ftilmann/latexdiff/issues/81","id":276609166,"user":{"login":"ftilmann","id":7870220,"avatar_url":"https://avatars.githubusercontent.com/u/7870220?v=3","gravatar_id":"","url":"https://api.github.com/users/ftilmann","html_url":"https://github.com/ftilmann","followers_url":"https://api.github.com/users/ftilmann/followers","following_url":"https://api.github.com/users/ftilmann/following{/other_user}","gists_url":"https://api.github.com/users/ftilmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ftilmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftilmann/subscriptions","organizations_url":"https://api.github.com/users/ftilmann/orgs","repos_url":"https://api.github.com/users/ftilmann/repos","events_url":"https://api.github.com/users/ftilmann/events{/privacy}","received_events_url":"https://api.github.com/users/ftilmann/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T09:19:28Z","updated_at":"2017-02-01T09:19:28Z","body":"\r\nI cannot reproduce this. Copy/pasting your example and running latexdiff myself I cannot reproduce and get the correct line:\r\n```tex\r\n\\DIFaddbegin \\DIFadd{Yyyy „Yyyy“ Yyyy }\\DIFaddend X\r\n```\r\nIt is possible that this depends on the UTF8 processing of perl, or that the copy/pasting is lossy with respect to the exact encoding. I tested with\r\n    This is LATEXDIFF 1.2.0  (Algorithm::Diff 1.15, Perl v5.18.2)\r\non Linux.\r\nI cannot help you further, I think. "}}
{"actor":{"display_login":"ftilmann"}}