4 ms·
One thing I noticed in the middle, when concatenating Rust files for a demonstration: > Note also that the files are sorted before concatenating, so that the r
by chungy 4y ago
One thing I noticed in the middle, when concatenating Rust files for a demonstration:
> Note also that the files are sorted before concatenating, so that the result is guaranteed to be deterministic.
No locale was defined and the example sort command used cannot be considered deterministic. The results could vary wildly on different systems just through the locale alone!
Two solutions: define the locale ("LC_ALL=C" before the command should be sufficient), or use the -V flag on sort.
- burntsushi 4y agoOoo, nice catch! Fixed: https://github.com/BurntSushi/blog/commit/a1b0e40cbfd293310b9c2aef0426b8e5cd32b7ca https://github.com/BurntSushi/blog/commit/a1b0e40cbfd293310b...
- chungy 4y agoAwesome :)