Page MenuHomePhabricator

Add some sytem locale utilities to libphutil
ClosedPublic

Authored by epriestley on Feb 4 2018, 3:52 PM.
Tags
None
Referenced Files
F13061333: D18990.diff
Fri, Apr 19, 7:16 PM
Unknown Object (File)
Tue, Apr 16, 1:54 PM
Unknown Object (File)
Thu, Apr 4, 5:17 AM
Unknown Object (File)
Sun, Mar 31, 7:21 PM
Unknown Object (File)
Sat, Mar 30, 11:55 PM
Unknown Object (File)
Sat, Mar 30, 5:45 AM
Unknown Object (File)
Feb 19 2024, 1:58 PM
Unknown Object (File)
Feb 16 2024, 4:08 AM
Subscribers
None

Details

Summary

Ref T13060. Ref T7339. Ref T5554. Although I don't plan to pursue resolving the latter two issues for now, I think we do have enough information to be confident that setlocale() is the ultimate pathway forward.

Add some wrappers with error checks and unit tests for the day that we eventually tackle T7339/T5554, and so we're on better footing if the setlocale() change in T13060 has unintended effects.

Test Plan

Ran unit tests, got a pass.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Add a test that phutil_set_system_locale('duck.quack') raises an exception.
This revision is now accepted and ready to land.Feb 5 2018, 8:27 PM
This revision was automatically updated to reflect the committed changes.