Use ncursesw for displaying unicode properly - holymoly - A tor enabled gopher client written in CHICKEN scheme
(HTM) git clone git://vernunftzentrum.de/holymoly.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8b316d28eaa854bb72827300ce9b621a13834540
(DIR) parent fc19f05807570a187fe76eb6051b721cd2eb95da
(HTM) Author: Christian Kellermann <ckeen@pestilenz.org>
Date: Wed, 15 Aug 2018 09:33:34 +0200
Use ncursesw for displaying unicode properly
Diffstat:
holymoly.egg | 4 ++--
holymoly.scm | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/holymoly.egg b/holymoly.egg
@@ -2,4 +2,4 @@
(license BSD)
(synopsis "A gopher client using ncurses and supporting SOCKS proxies")
(dependencies miscmacros uri-common srfi-1 srfi-4 srfi-71 srfi-13 bitstring)
- (components (program holymoly (linkage static) (files "holymoly.scm" "proxy.scm" "cursor.scm") (link-options "-Wl,-lncurses"))))
-\ No newline at end of file
+ (components (program holymoly (linkage static) (files "holymoly.scm" "proxy.scm" "cursor.scm") (link-options "-Wl,-lncursesw"))))
+\ No newline at end of file
(DIR) diff --git a/holymoly.scm b/holymoly.scm
@@ -7,6 +7,7 @@
(chicken bitwise)
(chicken condition)
(chicken file posix)
+ (chicken foreign)
(chicken format)
(chicken io)
(chicken irregex)
@@ -27,6 +28,9 @@
srfi-71
uri-common)
+(foreign-declare "#include <locale.h>")
+(foreign-code "setlocale(LC_ALL, \"en_US.UTF-8\");")
+
(import socksv5-proxy)
(import cursor)