Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Rework locale initialization loop
The previous code was always hard to understand, with a self-modifying loop. I finally figured out a clearer way to do it, by using an enum with all the possibilities, and a switch statement that sets up the loop for each, or decides this possibility isn't valid on this platform. The first possibility that works exits the loop.
- Loading branch information