Use new API for clearing language

This commit is contained in:
Jamie Cameron
2011-08-22 21:41:32 -07:00
parent 539c9dfcf3
commit f0bb980ebe
9 changed files with 69 additions and 31 deletions

View File

@ -48,7 +48,8 @@ while(1) {
sub os_most_recent_logins
{
my %rv;
open(LASTLOG, "LANG=C lastlog |");
&clean_language();
open(LASTLOG, "lastlog |");
while(<LASTLOG>) {
s/\r|\n//g;
if (/^(\S+)/) {
@ -63,6 +64,7 @@ while(<LASTLOG>) {
}
}
close(LASTLOG);
&reset_environment();
return \%rv;
}