Skip to content

Commit baaeef5

Browse files
committed
Separator: uses widecharwidth for Unicode wcwidth and fixes issue that wchar_t on Windows is 2-byte length
1 parent 8eafec4 commit baaeef5

File tree

8 files changed

+1675
-364
lines changed

8 files changed

+1675
-364
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ endif()
13041304
include(CheckFunctionExists)
13051305
check_function_exists(wcwidth HAVE_WCWIDTH)
13061306
if(NOT HAVE_WCWIDTH)
1307-
list(APPEND LIBFASTFETCH_SRC src/3rdparty/mk_wcwidch/wcwidth.c)
1307+
list(APPEND LIBFASTFETCH_SRC src/util/wcwidth.c)
13081308
endif()
13091309
if(LINUX)
13101310
check_function_exists(statx HAVE_STATX)

src/3rdparty/mk_wcwidch/repo.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/3rdparty/mk_wcwidch/wcwidth.c

Lines changed: 0 additions & 314 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"home": "https://github.com/ridiculousfish/widecharwidth",
3+
"license": "Public domain",
4+
"version": "Unicode 16",
5+
"author": "ridiculousfish"
6+
}

0 commit comments

Comments
 (0)