Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix localisation issue #2

Merged
merged 1 commit into from

2 participants

@Mic92

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

@alexpbrown alexpbrown merged commit 4b08cf5 into alexpbrown:master
@alexpbrown
Owner

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
View
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.