Page MenuHomePhabricator

Empty file has an unknown character encoding
Closed, ResolvedPublic

Description

An empty file is currently (incorrectly) being detected as having an "unknown character encoding". See D9678 for an example.

{F171294}

Event Timeline

joshuaspence assigned this task to epriestley.
joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Differential.
joshuaspence added a subscriber: joshuaspence.

I think that the problem here is in DifferentialChangesetParser (see | DifferentialChangesetParser.php#716-732). If the changeset is empty, then $encoding will be left null.