]> khamidou — GitHub mirrors - arcanist.git/commit
Disable intraline diff highlighting algorithm for lines which contain UTF-8 text
authorepriestley <git@epriestley.com>
Fri, 24 Jun 2011 17:11:43 +0000 (10:11 -0700)
committerepriestley <git@epriestley.com>
Sun, 26 Jun 2011 18:55:30 +0000 (11:55 -0700)
commit18e34d06bcb589127c9db621a41a20a319fb65ba
treea4a40022c56b9aa5979cd8055f309ce5c7a15944
parent80da1354daa6b063a1ed05dd57bb5b8f416e4607
Disable intraline diff highlighting algorithm for lines which contain UTF-8 text

Summary: This is sort of cheating, but just have this feature disable itself if the input contains multibyte UTF-8 characters. We can clean it up in the future, maybe when we have better utf8 tools.

This means that all the algorithms are safe to pass utf8 to, so we can get rid of all the "<?>" silliness.

Test Plan: Added a UTF8 character to a line, diffed it out, and got the entire line highlighted as changed. See: https://secure.phabricator.com/file/view/PHID-FILE-70fb54eb3f88dc057ab3/

Reviewers: jungejason, aran, tuomaspelkonen

CC:

Differential Revision: 514
src/difference/ArcanistDiffUtils.php