Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Force "C" locale to prevent string.format("%f", 0.5) outputting "0,5"
  • Loading branch information
mason-larobina committed Sep 13, 2010
1 parent 702cc5d commit 876a4fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/rc.lua
@@ -1,5 +1,9 @@
-- Luakit configuration file, more information at http://luakit.org/

-- Set standard C locale, otherwise `string.format("%f", 0.5)` could
-- return "0,5" (which was breaking link following for those locales).
os.setlocale("C")

-- Load library of useful functions for luakit
require "lousy"

Expand Down

0 comments on commit 876a4fd

Please sign in to comment.