Skip to content

Commit

Permalink
prevent user's locale from changing program logic
Browse files Browse the repository at this point in the history
  • Loading branch information
phil294 committed Aug 16, 2022
1 parent 31b1d5c commit 3d0a845
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ahk_x11.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ fun main(argc : Int32, argv : UInt8**) : Int32
# Enforce 4 threads because less than that break the program. For now, this is the
# only way to enforce it. (1 = main, 2 = x11, 3 = gui, 4 = ? probably timer)
LibC.setenv("CRYSTAL_WORKERS", "4", 1)
# https://github.com/crystal-lang/crystal/issues/11952#issuecomment-1216955886
LibC.setenv("LC_ALL", "en_US.UTF-8", 1)
Crystal.main(argc, argv)
end

Expand Down

0 comments on commit 3d0a845

Please sign in to comment.