mitmproxy should check LC_CTYPE before LANG when testing console environment
See original GitHub issueWhen I run mitmproxy 0.9, I see:
% mitmproxy --version
mitmproxy 0.9
% mitmproxy
Error: mitmproxy requires a UTF console environment.
Set your LANG enviroment variable to something like en_US.UTF-8
But my console environment is UTF-8 already:
% locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
When I check the locale(1)
manpage, it says that LC_ALL
, if set, overrides LC_*
, and that LANG
is just a fallback for unset LC_*
values. But every possible LC_*
value other than LC_ALL
is set, so there is no need to set either LC_ALL
or LANG
.
% uname -v
Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Issue Analytics
- State:
- Created 10 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
mitmproxy should check LC_CTYPE before LANG when ...
I am facing the same problem: Error: mitmproxy requires a UTF console environment. Set your LANG enviroment variable to something like en_US.UTF ......
Read more >Options - mitmproxy docs
Name Type Description
# allow_hosts mitmproxy mitmdump mitmweb sequence of str Opposite of ‑‑ignore‑hosts...
# client_replay mitmproxy mitmdump mitmweb sequence of str Replay client requests...
Read more >How To: Use mitmproxy to read and modify HTTPS traffic
When the client opens an SSL/TLS connection to the secure web server, it verifies the server's identity by checking two conditions: First, ......
Read more >Against All Odds
mitmproxy Error: mitmproxy requires a UTF console environment. Set your LANG enviroment variable to something like en_US.UTF-8.
Read more >How to Man in the Middle HTTPS Using mitmproxy - Earthly Blog
mitmproxy is a command-line tool that acts as a HTTP and HTTPS proxy and records all the traffic. You can easily see what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@abit2: You need to change the process environment. This should work:
vim /etc/profile export LANG=C.UTF-8 source /etc/profile