[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
encoding in shell-command and subshell
From: |
Jean-Christophe Helary |
Subject: |
encoding in shell-command and subshell |
Date: |
Mon, 23 Aug 2021 20:01:01 +0900 |
When I run shell-command with javac on a class that contains non ASCII
charaters, I get garbage.
When I open the subshell and run the same command inside it, it picks by Java
encoding environment declaration (.profile):
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
and works without problems.
The workaround is that I have to declare the encoding in the shell-command.
Why is that ? Is there a way to have the subshell from shell-command pick my
environment variables ?
--
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
- encoding in shell-command and subshell,
Jean-Christophe Helary <=