Make sure Gammu speaks english

Gammu returns localized messages whereas GammuAdapter searches for string "nothing".
Force Gammu to return english messages so word searches will work properly.
This fixes #172
This commit is contained in:
Orsiris de Jong 2022-10-17 19:15:32 +02:00 committed by GitHub
parent ad1f798ae6
commit f790adc6a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,6 +188,7 @@ namespace adapters;
} }
$command_parts = [ $command_parts = [
'LC_ALL=C',
'gammu', 'gammu',
'--config', '--config',
escapeshellarg($this->data['config_file']), escapeshellarg($this->data['config_file']),
@ -339,6 +340,7 @@ namespace adapters;
} }
$command_parts = [ $command_parts = [
'LC_ALL=C',
'gammu', 'gammu',
'--config', '--config',
escapeshellarg($this->data['config_file']), escapeshellarg($this->data['config_file']),
@ -351,6 +353,7 @@ namespace adapters;
//Check security status //Check security status
$command_parts = [ $command_parts = [
'LC_ALL=C',
'gammu', 'gammu',
'--config', '--config',
escapeshellarg($this->data['config_file']), escapeshellarg($this->data['config_file']),