New comment by oreo639 on void-packages repository https://github.com/void-linux/void-packages/pull/39264#issuecomment-1974023999 Comment: > 3\. I think you did this, in a couple of different ways, in an earlier proposal. Here is what I did for that: https://gist.github.com/oreo639/850ddb140df502781f1f54fc1ffaba0c > 4\. Properly validate that `locale.conf` contains nothing more than comments or simple `VAR=value` assignments. Reject it entirely if it does not conform, otherwise parse accordingly. I pushed a version using that approach, although it will still accept lines that are valid (instead of rejecting the entire file) I also updated it to use the regex from Fedora to check for a valid assignment.