From f790adc6a1cd50efa68d72b399272ba5aeddefb7 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong <ozy@netpower.fr> Date: Mon, 17 Oct 2022 19:15:32 +0200 Subject: [PATCH] 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 --- adapters/GammuAdapter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapters/GammuAdapter.php b/adapters/GammuAdapter.php index fb32676..884da1f 100644 --- a/adapters/GammuAdapter.php +++ b/adapters/GammuAdapter.php @@ -188,6 +188,7 @@ namespace adapters; } $command_parts = [ + 'LC_ALL=C', 'gammu', '--config', escapeshellarg($this->data['config_file']), @@ -339,6 +340,7 @@ namespace adapters; } $command_parts = [ + 'LC_ALL=C', 'gammu', '--config', escapeshellarg($this->data['config_file']), @@ -351,6 +353,7 @@ namespace adapters; //Check security status $command_parts = [ + 'LC_ALL=C', 'gammu', '--config', escapeshellarg($this->data['config_file']),