Skip to content

Commit 923997f

Browse files
authored
Merge pull request #651 from fastfetch-cli/dev
Release v2.3.3
2 parents 30b9f95 + 0182e32 commit 923997f

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.3.3
2+
3+
Bugfixes:
4+
* Fix `--help` doesn't work in Windows and some other platforms
5+
16
# 2.3.2
27

38
Bugfixes:

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.3.2
4+
VERSION 2.3.3
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -206,7 +206,7 @@ endif()
206206
#############
207207

208208
function(fastfetch_encode_c_string STR OUTVAR)
209-
string(REGEX REPLACE "\n$" "" TEMP "${STR}") # Remove trailing newline
209+
string(REGEX REPLACE "\n$" "" TEMP "${STR}") # Remove trailing newline
210210
string(REPLACE "\\" "\\\\" TEMP "${TEMP}") # Escape backslashes
211211
string(REPLACE "\n" "\\n" TEMP "${TEMP}") # Replace newlines with \n
212212
string(REPLACE "\"" "\\\"" TEMP "${TEMP}") # Replace quotes with \"
@@ -222,7 +222,7 @@ endfunction(fastfetch_load_text)
222222
find_package(Python)
223223
if(Python_FOUND)
224224
# Minify JSON string. `io.open(0,encoding='utf-8')` is needed to avoid encoding issues on Windows
225-
execute_process(COMMAND ${Python_EXECUTABLE} -c "import io,json,sys;json.dump(json.load(io.open(0,encoding='utf-8')),sys.stdout,separators=(',', ':'),ensure_ascii=False)"
225+
execute_process(COMMAND ${Python_EXECUTABLE} -c "import json,sys;json.dump(json.load(sys.stdin),sys.stdout,separators=(',',':'))"
226226
INPUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/src/data/help.json"
227227
OUTPUT_VARIABLE DATATEXT_JSON_HELP)
228228
else()

src/data/help.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
"desc": "Set the character to use in elapsed part of percentage bars",
549549
"arg": {
550550
"type": "str",
551-
"default": ""
551+
"default": "\u25a0"
552552
}
553553
},
554554
{
@@ -1290,12 +1290,12 @@
12901290
"arg": {
12911291
"type": "enum",
12921292
"enum": {
1293-
"block": "███",
1294-
"circle": "",
1295-
"diamond": "",
1296-
"triangle": "",
1297-
"square": "",
1298-
"star": ""
1293+
"block": "\u2588\u2588\u2588",
1294+
"circle": "\u25cf",
1295+
"diamond": "\u25c6",
1296+
"triangle": "\u25b2",
1297+
"square": "\u25a0",
1298+
"star": "\u2605"
12991299
},
13001300
"default": "block"
13011301
}

0 commit comments

Comments
 (0)