mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-15 09:54:52 +02:00
Merge branch 'fix/win32-set-names' into 'develop'
Fix encoding related issues. See merge request artica/pandorafms!2009
This commit is contained in:
commit
3586403a08
@ -507,7 +507,7 @@ sub pandora_load_config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Collect items from config file and put in an array
|
# Collect items from config file and put in an array
|
||||||
if (! open (CFG, "< $archivo_cfg")) {
|
if (! open (CFG, "<:encoding(UTF-8)", $archivo_cfg)) {
|
||||||
print "[ERROR] Error opening configuration file $archivo_cfg: $!.\n";
|
print "[ERROR] Error opening configuration file $archivo_cfg: $!.\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
@ -175,6 +175,7 @@ if ($OS eq 'linux') {
|
|||||||
} elsif ($OS =~ /win/i) {
|
} elsif ($OS =~ /win/i) {
|
||||||
$OS = "windows";
|
$OS = "windows";
|
||||||
$OS_VERSION = `ver`;
|
$OS_VERSION = `ver`;
|
||||||
|
$OS_VERSION =~ s/[^[:ascii:]]//g;
|
||||||
$DEVNULL = '/Nul';
|
$DEVNULL = '/Nul';
|
||||||
} elsif ($OS eq 'freebsd') {
|
} elsif ($OS eq 'freebsd') {
|
||||||
$OS_VERSION = `uname -r`;
|
$OS_VERSION = `uname -r`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user