From e42acadee844af0505d78bac08de7c8456c0e5de Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 21 Apr 2020 18:10:52 -0400 Subject: Add Markus Kuhn's wcwidth implementation And wcfix script for macOS, based on to fix some emoji display in catgirl. Somehow this code from 2007 against Unicode 5.0 does a better job than whatever the hell macOS Mojave's libc is doing. --- home/.local/bin/wcfix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 home/.local/bin/wcfix (limited to 'home') diff --git a/home/.local/bin/wcfix b/home/.local/bin/wcfix new file mode 100755 index 00000000..b31bd19b --- /dev/null +++ b/home/.local/bin/wcfix @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +export DYLD_FORCE_FLAT_NAMESPACE=1 +export DYLD_INSERT_LIBRARIES=~/.local/lib/libwcwidth.dylib + +exec "$@" -- cgit 1.4.1