Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistCommitWorkflow.php
Context not available. | |||||
$locale = 'en_US.utf8'; | $locale = 'en_US.utf8'; | ||||
try { | try { | ||||
list($locales) = execx('locale -a'); | list($locales) = execx('locale -a'); | ||||
$locales = explode("\n", trim($locales)); | $locales = @explode("\n", trim($locales)); | ||||
$locales = array_fill_keys($locales, true); | $locales = array_fill_keys($locales, true); | ||||
if (isset($locales['en_US.UTF-8'])) { | if (isset($locales['en_US.UTF-8'])) { | ||||
$locale = 'en_US.UTF-8'; | $locale = 'en_US.UTF-8'; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0