Skip to content

Commit

Permalink
Change only git bash encoding to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack committed May 27, 2024
1 parent 928b0d9 commit b6c57ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nxc/netexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from sys import exit
from rich.progress import Progress
import platform
sys.stdout.reconfigure(encoding="utf-8")
if sys.stdout.encoding == "cp1252":
sys.stdout.reconfigure(encoding="utf-8")

# Increase file_limit to prevent error "Too many open files"
if platform.system() != "Windows":
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
import os
from nxc.paths import TMP_PATH
import sys
sys.stdout.reconfigure(encoding="utf-8")
if sys.stdout.encoding == "cp1252":
sys.stdout.reconfigure(encoding="utf-8")

script_dir = dirname(abspath(__file__))
run_dir = os.getcwd()
Expand Down

0 comments on commit b6c57ce

Please sign in to comment.