]> khamidou — GitHub mirrors - arcanist.git/commit
Parse git diffs of files with unicode characters in the names
authorepriestley <git@epriestley.com>
Wed, 8 Feb 2012 18:04:15 +0000 (10:04 -0800)
committerepriestley <git@epriestley.com>
Wed, 8 Feb 2012 18:04:15 +0000 (10:04 -0800)
commit8cb5292edf22f84154f541252cf2568fe583316b
treedef35d47ac5dd5add57342848bd9b739d3ce6c54
parent35837a39d2e568931cad2f4e5920d070f39cfe56
Parse git diffs of files with unicode characters in the names

Summary: This is probably just the first step down a long road of not handling
exotic filenames correctly, but if you diff a file named "∆.jpg" it currently
chokes while parsing the diff.

Test Plan: Added minimal failing unit test, fixed parser, test passed.

Reviewers: zeeg, btrahan

Reviewed By: btrahan

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1592
src/parser/diff/ArcanistDiffParser.php
src/parser/diff/__tests__/ArcanistDiffParserTestCase.php
src/parser/diff/__tests__/data/git-odd-filename.gitdiff [new file with mode: 0644]