Skip to content


Fix localisation issue #2

merged 1 commit into from

2 participants


Use LC_ALL=C to fix localisation issue while parsing pacman's output

@alexpbrown alexpbrown merged commit 4b08cf5 into alexpbrown:master

Didn't know about this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 1, 2012
  1. @Mic92
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  pkgcl
2  pkgcl
@@ -50,7 +50,7 @@ puts opts if packages.empty?
packages.each do |a|
repo, arch = "", ""
- IO.popen(["pacman", "-Si", a, :err => :close]) do |io|
+ IO.popen([{"LC_ALL"=>"C"}, "pacman", "-Si", a, :err => :close]) do |io|
io.lines do |line|
case line
when /^Repository(\s?)*: (.+)$/
Something went wrong with that request. Please try again.