summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2016-02-12 16:43:42 -0300
committerandmarti1424 <andmarti@gmail.com>2016-02-12 16:43:42 -0300
commitcbf951baee9ae4250db6ab4ef167bbed198e13c8 (patch)
tree9039f3ab509fa38557c87fb2011c025031d2cb96
parent84b8c1ef8565f4cdfb7815ad6e71b5215f2aba63 (diff)
Using special chars - updated WIKI and Makefile
-rw-r--r--WIKI6
-rw-r--r--src/Makefile7
2 files changed, 10 insertions, 3 deletions
diff --git a/WIKI b/WIKI
index 84d5c7e..bcb3d0d 100644
--- a/WIKI
+++ b/WIKI
@@ -1,3 +1,9 @@
+Building SC-IM
+--------------
+Try building SC-IM linking to ncursesw library rather than ncurses library and setting the USELOCALE flag.
+This will prevent to have problems with special characters (extended ascii chars), whatever encoding you use.
+
+
Build instructions for NetBSD
-----------------------------
Use gmake and bison.
diff --git a/src/Makefile b/src/Makefile
index 89617e2..42bab4e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,7 +3,6 @@
# Specify the name of the program.
# All documentation and installation keys on this value.
-#
name=sc-im
NAME=SC-IM
SNAME := -DSNAME=\"$(name)\"
@@ -54,7 +53,8 @@ MACOSX :=
#SIMPLE := -DSIMPLE
# Set USELOCALE to use your local d_fmt for converting dates with C-d shortcut.
-# See DATES INPUT in help.
+# (See DATES INPUT in help for more details).
+# You also should set this flag if you use extended ascii chars.
USELOCALE := -DUSELOCALE
# Set this if you want SC-IM to have color support
@@ -135,7 +135,8 @@ CFLAGS := $(CFLAGS) $(USECOLORS) $(USELOCALE) $(UNDO) $(SIGVOID) $(DFLT_PAGER)
CFLAGS := $(CFLAGS) $(IEEE_MATH) $(RINT) $(REGEX) $(LIBRARY)
CFLAGS := $(CFLAGS) $(HELP_PATH) $(SNAME) $(NO_NOTIMEOUT) $(SIMPLE) $(XLS) $(XLSX) $(HISTORY_FILE)
-LDLIBS := -lm -lncurses
+LDLIBS := -lm -lncursesw
+#LDLIBS := -lm -lncurses
#LDLIBS := -lm -lncurses -lxlsreader
#LDLIBS := -lm -lncurses -lxlsreader -lzip -lxml2