branch: externals/emms
commit 38417250833e14914d3cff65ebf8b51a1b9c1da5
Author: Yoni Rabkin <y...@gnu.org>
Commit: Yoni Rabkin <y...@gnu.org>

    * emms-volume-pulse.el: Deal with pactl being translated correctly.
    
    Patch by Daniel Cerqueira <dan....@lispclub.com>
    
    This fix add the "LC_ALL=C" Unix-like environment variable to the
    "pactl" call. This will work fine, because pactl only works on
    Unix-like systems (namely GNU).
---
 emms-volume-pulse.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/emms-volume-pulse.el b/emms-volume-pulse.el
index 98c8880fc4..604077fe20 100644
--- a/emms-volume-pulse.el
+++ b/emms-volume-pulse.el
@@ -70,11 +70,11 @@ See full list of devices on your system by running
               emms-volume-pulse-sink
             (string-trim
              (shell-command-to-string
-              "pactl info | grep 'Default Sink: ' | cut -d ' ' -f3-"))))
+              "LC_ALL=C pactl info | grep 'Default Sink: ' | cut -d ' ' 
-f3-"))))
          (sink-number-p (numberp emms-volume-pulse-sink))
          (output
           (shell-command-to-string
-           (concat "pactl list sinks" "|"
+           (concat "LC_ALL=C pactl list sinks" "|"
                    "grep -E -e 'Sink' -e 'Name' -e '^[^a-zA-Z]*Volume'")))
         (volume-string
          (car

Reply via email to