From 0bec1f1585b89508727f8151f070885257eef1f3 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 26 Jun 2020 18:38:17 +0300 Subject: [PATCH] Extend system info with "file system" and "locale" encodings --- platformio/commands/system/command.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/platformio/commands/system/command.py b/platformio/commands/system/command.py index e5d66721..a684e14a 100644 --- a/platformio/commands/system/command.py +++ b/platformio/commands/system/command.py @@ -20,7 +20,7 @@ import sys import click from tabulate import tabulate -from platformio import __version__, proc, util +from platformio import __version__, compat, proc, util from platformio.commands.system.completion import ( get_completion_install_path, install_completion_code, @@ -49,6 +49,14 @@ def system_info(json_output): } data["system"] = {"title": "System Type", "value": util.get_systype()} data["platform"] = {"title": "Platform", "value": platform.platform(terse=True)} + data["filesystem_encoding"] = { + "title": "File System Encoding", + "value": compat.get_filesystem_encoding(), + } + data["locale_encoding"] = { + "title": "Locale Encoding", + "value": compat.get_locale_encoding(), + } data["core_dir"] = { "title": "PlatformIO Core Directory", "value": project_config.get_optional_dir("core"),