--- pal-0.4.3.orig/debian/watch
+++ pal-0.4.3/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/palcal/ pal[-_]([0-9.]+)\.t(?:ar\.)?[gb]z
--- pal-0.4.3.orig/debian/rules
+++ pal-0.4.3/debian/rules
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# vim: set ft=make:
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+# we use dh_strip to strip executables ...
+export DEBUG=1
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	$(MAKE) "CFLAGS=$(CFLAGS)"
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	$(MAKE) distclean
+	dh_clean build-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/pal install-mo
+	$(MAKE) DESTDIR=$(CURDIR)/debian/pal install-man
+	$(MAKE) DESTDIR=$(CURDIR)/debian/pal install-bin
+	$(MAKE) DESTDIR=$(CURDIR)/debian/pal install-share
+
+binary-indep:
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean mostlyclean binary-indep binary-arch binary install
--- pal-0.4.3.orig/debian/README.Debian
+++ pal-0.4.3/debian/README.Debian
@@ -0,0 +1,35 @@
+pal for Debian
+==============
+
+For more information about pal visit http://palcal.sourceforge.net/. Feedback
+to palcal-devel@lists.sourceforge.net is also welcome and appreciated.
+
+
+ical2pal and pal2ical
+---------------------
+
+NOTE: ical2pal and pal2ical are very new and likely contain bugs.
+
+This version includes the source code of ical2pal and pal2ical, two utilities
+to convert events between the ical format (described in RFC 2445 and others)
+and the pal format.
+
+However, these are a beta versions, and it neither compiled nor installed. The
+source code and a Makefile can be found in /usr/share/doc/pal/examples/.
+Please, compile them at your own risk, and only if you know what you're doing.
+
+Also, notice that ical2pal and pal2ical depend on the libical library
+(http://www.softwarestudio.org/libical/), currently not available as a debian
+package. If you don't want to add trash to your system, remember to build
+libical with "./configure --prefix=/usr/local".
+
+
+Other calendars
+---------------
+
+System calendars can be found under /usr/share/pal/. In Debian systems you can
+find more calendars under /usr/share/calendar/, provided by the package
+bsdmainutils, however pal can't understand nor convert them.
+
+
+ -- Carsten Hey <c.hey@web.de>  Tue, 17 Jun 2008 16:40:45 +0200
--- pal-0.4.3.orig/debian/compat
+++ pal-0.4.3/debian/compat
@@ -0,0 +1 @@
+5
--- pal-0.4.3.orig/debian/control
+++ pal-0.4.3/debian/control
@@ -0,0 +1,42 @@
+Source: pal
+Section: utils
+Priority: optional
+Maintainer: Carsten Hey <c.hey@web.de>
+Uploaders: Gerfried Fuchs <rhonda@debian.at>
+Build-Depends: debhelper (>= 5), libreadline5-dev | libreadline-dev, libncursesw5-dev, libglib2.0-dev, gettext, quilt
+Standards-Version: 3.8.0
+Homepage: http://palcal.sourceforge.net/
+
+Package: pal
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: texlive
+Description: command-line calendar program that can keep track of events
+ pal is a command-line calendar program for Unix/Linux systems that can keep
+ track of events. It has similarities with the Unix cal command, the more
+ complex GNU gcal program, and the calendar program distributed with the BSDs.
+ .
+ Some of pal's main features are:
+  * A cal-like calendar that highlights days that have events.
+  * Assign different colors to different types of events.
+  * Search events with regular expressions (-s).
+  * Includes calendars for US holidays, Christian holidays, world holidays,
+    historical events and more.
+  * One-time events and a variety of recurring events are supported (daily,
+    weekly, monthly, yearly). Recurring events can have start and end dates.
+  * Easy-to-use interface for interactively adding, editing and deleting
+    events (-m).
+  * Automated deletion of old events (-x).
+  * Option to generate an HTML calendar (--html).
+  * Option to generate a LaTeX calendar suitable for printing (--latex).
+ .
+ Ways to use pal effectively include:
+  * Create your own calendar files and be reminded of upcoming meetings,
+    deadlines, and events.
+  * Remind yourself daily of your "To Do" list by using the special TODO event
+    type.
+  * Run pal in your shell initialization file (such as ~/.bash_profile) to see
+    your calendar whenever you open a new terminal.
+  * Set up a cron job that emails you and/or others the output of pal every
+    morning (--mail).
+  * View the calendars of other pal users on the same system.
--- pal-0.4.3.orig/debian/dirs
+++ pal-0.4.3/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- pal-0.4.3.orig/debian/examples
+++ pal-0.4.3/debian/examples
@@ -0,0 +1,4 @@
+doc/example.css
+src/convert/ical2pal.c
+src/convert/pal2ical.c
+src/convert/Makefile
--- pal-0.4.3.orig/debian/changelog
+++ pal-0.4.3/debian/changelog
@@ -0,0 +1,139 @@
+pal (0.4.3-3~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+
+ -- Gerfried Fuchs <rhonda@debian.at>  Fri, 28 Nov 2008 23:59:40 +0100
+
+pal (0.4.3-3) unstable; urgency=low
+
+  * Recode austria.pal from ISO-8859 to UTF-8.  (Closes: #499389)
+  * Link pal against libncursesw5 instead of libncurses5.  (Closes:
+    #499403)
+
+ -- Carsten Hey <c.hey@web.de>  Mon, 29 Sep 2008 11:57:52 +0200
+
+pal (0.4.3-2) unstable; urgency=low
+
+  * debian/watch: use QA redirector.
+  * Added a new Debian specific patch which changes the path to example.css in
+    pal.1.  Debian installs this file into a different location than
+    upstream's makefile target install-doc.  (Closes: #497874)
+
+ -- Carsten Hey <c.hey@web.de>  Sat, 06 Sep 2008 07:13:08 +0200
+
+pal (0.4.3-1) unstable; urgency=low
+
+  * New Upstream Version
+    - Fix segfault when printing strings not valid in user's locale
+      (Closes: #492464)
+  * Removed patches that are included in pal's latest upstream release from
+    debian/patches.  No remaining patches.
+
+ -- Carsten Hey <c.hey@web.de>  Sat, 02 Aug 2008 19:26:36 +0200
+
+pal (0.4.2-3) unstable; urgency=low
+
+  * Apply patch from upstream CVS:
+   - Don't loop endlessly when there are too few entries to be displayed in
+     interactive mode.  (Martijn van Oosterhout and Adam Lincoln)
+   - Support color in screen.  (Adam Lincoln)
+   - Wait for a keystroke after add event.  (Adam Lincoln)
+
+ -- Carsten Hey <c.hey@web.de>  Tue, 22 Jul 2008 13:31:23 +0200
+
+pal (0.4.2-2) unstable; urgency=high
+
+  * Urgency set to high as is solves an RC bug.
+  * Apply patch from upstream CVS:
+   - Don't segfault when default_text is NULL in rl.c.  (Closes: #489228)
+   - Fix some compiler warnings.
+   - CFLAGS has been splittet into CFLAGS and CPPFLAGS.
+  * Adjusted debian/rules to pass CFLAGS to pal's Makefile.
+
+ -- Carsten Hey <c.hey@web.de>  Sat, 05 Jul 2008 13:52:32 +0200
+
+pal (0.4.2-1) unstable; urgency=low
+
+  * New upstream version:
+   - Fix encoding in HTML export.  (Closes: #332642)
+   - Add missing HTML tags to exported HTML.  (Closes: #417854)
+  * Removed pal_add_event.zsh and pal_edit_event.zsh from examples.
+  * Removed patches that are included in pal's latest upstream release from
+    debian/patches.  No remaining patches.
+  * Added a new patch which fixes a typo and groff syntax in pal.1.template.
+  * Suggest texlive instead of tetex-bin.
+  * Updated debian/copyright, updated debian/README.Debian, added
+    debian/README.source, added debian/watch, adapted debian/rules to the new
+    upstream release and extended long description in debian/control.
+  * Bumped standards version to 3.8.0.
+
+ -- Carsten Hey <c.hey@web.de>  Wed, 18 Jun 2008 13:18:28 +0200
+
+pal (0.3.5-pre1+3) unstable; urgency=low
+
+  * Removed version from NAME section in pal(1).
+  * Added manpage for vcard2pal.
+  * Simplified clean target in debian/rules.
+
+ -- Carsten Hey <c.hey@web.de>  Mon, 02 Jun 2008 19:04:13 +0000
+
+pal (0.3.5-pre1+2) unstable; urgency=low
+
+  * New Maintainer.  Thanks Javier and Martijn!
+  * Rewrote debian/rules.  We now use debhelper, added dependency.
+  * Use quilt as patch management, added dependency.
+  * Fixed debian/copyright, GPLv2+ is not GPL.  Also added copyright
+    information for some new and existent scripts.
+  * Added Homepage field to debian/control and removed homepage and author
+    from description.
+  * Reformated description.
+  * Removed useless maintainer scripts.
+  * Added wrapper from pal 0.4.0_pre3 around src/Makefile.
+  * Applied updates to installation notes from pal 0.4.0_pre3.
+  * Check whether term is NULL in colorize.c.  (Closes: #431352)
+  * Handle nostrip build option correctly.  (Closes: #437732)
+  * Applied fixes and additions to existing pal files from CVS and pal
+    0.4.0_pre3: birth-death.pal, history.pal and us.pal.  (Closes: #415457)
+  * Added sysadminday to computer.pal.  (Closes: #320420)
+  * Added austria.pal.  (Closes: #476239)
+  * Updated convert/ical2pal.c, added convert/pal2ical.c and updated
+    convert/Makefile (backports from pal 0.4.0_pre3) and added these to
+    examples.  Also mention pal2ical in README.Debian.
+  * Moved example.css to examples.
+  * Added pal_add_event.zsh and pal_edit_event.zsh from CVS as examples.
+  * Added vcard2pal.  Thanks Uli!
+
+ -- Carsten Hey <c.hey@web.de>  Mon, 02 Jun 2008 08:56:32 +0000
+
+pal (0.3.5-1pre1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Closes: #326311: Update libreadline dependency
+
+ -- Martijn van Oosterhout <kleptog@svana.org>  Mon, 14 Nov 2005 16:03:34 +0100
+
+pal (0.3.5-1pre1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Javier Linares <javier@javierlinares.com>  Sat, 05 Jun 2004 15:38:08 +0200
+
+pal (0.3.3-2.0.1) unstable; urgency=low
+
+  * Only-binary upload to fix dependencies (closes: #247063).
+
+ -- Teofilo Ruiz Suarez <teo@debian.org>  Mon, 03 May 2004 14:30:55 +0200
+
+pal (0.3.3-2) unstable; urgency=low
+
+  * Removed pointer to non-existant README file (closes: #241747).
+  * Makes file_hide work properly (closes: #243556).
+
+ -- Javier Linares <javier@javierlinares.com>  Fri, 23 Apr 2004 19:32:16 +0200
+
+pal (0.3.3-1) unstable; urgency=low
+
+  * Initial release (closes: #238134).
+
+ -- Javier Linares <javier@javierlinares.com>  Tue, 16 Mar 2004 14:34:17 +0100
+
--- pal-0.4.3.orig/debian/copyright
+++ pal-0.4.3/debian/copyright
@@ -0,0 +1,122 @@
+This package was debianized by Javier Linares <javier@javierlinares.com> on
+Tue, 16 Mar 2004 15:45:12 +0100.  Since Sun, 01 Jun 2008 it is maintained by
+Carsten Hey <c.hey@web.de>.
+
+-----------------------------------------------------------------------------
+
+pal:
+
+It was downloaded from http://palcal.sourceforge.net/.
+
+Copyright: 2003-2006  Scott Kuhl <scott@kuhlweb.com>
+
+License:
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+  02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General Public License,
+version 2, can be found in /usr/share/common-licenses/GPL-2. Newer
+versions of this license can be found in the same directory.
+
+-----------------------------------------------------------------------------
+
+pal2ical and ical2pal:
+
+It was downloaded from http://palcal.sourceforge.net/.
+
+Copyright: 2004  Scott Kuhl <scott@kuhlweb.com>
+
+License:
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+  02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General Public License,
+version 2, can be found in /usr/share/common-licenses/GPL-2. Newer
+versions of this license can be found in the same directory.
+
+-----------------------------------------------------------------------------
+
+Translations of pal:
+
+The German translation of pal is Copyright (C) 2004 Scott Kuhl, Copyright (C)
+2004,2005  by Christopher KnÃ¶rle <cknoerle@users.sourceforge.net> and is
+distributed under the same license as the pal package.
+
+The Spanish translation of pal is Copyright (C) 2004 Scott Kuhl, Copyright (C)
+2004 Javier Linares and is distributed under the same license as the pal
+package.
+
+The Polish translation of pal is Copyright (C) 2004 Scott Kuhl, Copyright (C)
+2004 Artur Gajda and is distributed under the same license as the pal package.
+
+The Swedish translation of pal is Copyright (C) 2004 Scott Kuhl, Copyright (C)
+2004 Lars Bjarby and is distributed under the same license as the pal package.
+
+The Turkish translation of pal is Copyright (C) 2004 Scott Kuhl, Copyright (C)
+2006 Can Burak Ã‡ilingir and is distributed under the same license as the pal
+package.
+
+-----------------------------------------------------------------------------
+
+vcard2pal:
+
+It was downloaded from http://youam.net/devel/vcard2pal/.
+
+Copyright: 2005, 2008  Uli Martens <uli@youam.net>
+           All rights reserved.
+
+License:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+The manpage of pal has been written by Uli Martens and Carsten Hey in 2008 and
+is published under the same terms as vcard2pal itself.
+
+-----------------------------------------------------------------------------
--- pal-0.4.3.orig/debian/README.source
+++ pal-0.4.3/debian/README.source
@@ -0,0 +1,42 @@
+Patch management:
+-----------------
+
+This package uses quilt to manage Debian related, Debian originated, backported
+and/or third party patches against the upstream version, so you need to install
+quilt to work with this package, i. e.:
+
+    apt-get install quilt
+
+The makefile debian/rules provides targets to apply and unapply all patches:
+
+    debian/rules patch
+    debian/rules unpatch
+
+If you use quilt 0.46-4.1 or later, a more detailed introduction about quilt
+and Debian packaging can be viewed with the in the below-mentioned command:
+
+    more /usr/share/doc/quilt/README.source
+
+
+
+Version control system:
+-----------------------
+
+Upstreams version control system can be viewed with an internet browser using
+the stated below URI.  If this is a native Debian package (packages without a
+hyphen in the Debian version are native packages), the Debian packaging is
+probably also in this repository.
+
+    http://palcal.cvs.sourceforge.net/palcal
+
+To check out a copy of the current development version you can either use the
+command line client for the used version control system or an graphical
+frontend, for example:
+
+    cvs -d ':pserver:anonymous@palcal.cvs.sourceforge.net:/cvsroot/palcal' login
+    (the password is empty, so you can just hit enter at the prompt)
+    cvs -z3 -d ':pserver:anonymous@palcal.cvs.sourceforge.net:/cvsroot/palcal' checkout pal
+
+
+
+ -- Carsten Hey <c.hey@web.de>  Tue, 17 Jun 2008 16:41:03 +0200
--- pal-0.4.3.orig/debian/patches/00_recode_austria.pal.patch
+++ pal-0.4.3/debian/patches/00_recode_austria.pal.patch
@@ -0,0 +1,36 @@
+pal (0.4.3-3)  * Recode austria.pal from ISO-8859 to UTF-8.  (Closes: #499389)
+
+--- pal.orig/share/austria.pal
++++ pal/share/austria.pal
+@@ -5,13 +5,13 @@
+ 
+ AT Austria
+ 00000101 Neujahr
+-00000106 Heilige Dreikönige
++00000106 Heilige DreikÃ¶nige
+ 00000214 Valentinstag
+ 00000501 Tag der Arbeit
+-00000815 Mariä Himmelfahrt
++00000815 MariÃ¤ Himmelfahrt
+ 00001026 Nationalfeiertag
+ 00001101 Allerheiligen
+-00001208 Mariä Empfängnis
++00001208 MariÃ¤ EmpfÃ¤ngnis
+ 00001224 Heilig Abend
+ 00001225 Christtag
+ 00001226 Stefanitag
+@@ -20,7 +20,7 @@ AT Austria
+ Easter-047 Faschingsdienstag
+ Easter-046 Aschermittwoch
+ Easter-007 Palmsonntag
+-Easter-003 Gründonnerstag
++Easter-003 GrÃ¼ndonnerstag
+ Easter-002 Karfreitag
+ Easter     Ostersonntag
+ Easter+001 Ostermontag
+@@ -32,4 +32,4 @@ Easter+060 Fronleichnam
+ *03L1 Anfang Sommerzeit --- Uhren vorstellen
+ *0521 Muttertag
+ *0621 Vatertag
+-*10L1 Ende Sommerzeit --- Uhren zurückstellen
++*10L1 Ende Sommerzeit --- Uhren zurÃ¼ckstellen
--- pal-0.4.3.orig/debian/patches/series
+++ pal-0.4.3/debian/patches/series
@@ -0,0 +1,3 @@
+00_recode_austria.pal.patch
+50_debian_fix_example_path_in_manpage.patch
+51_debian_link_against_ncursesw.patch
--- pal-0.4.3.orig/debian/patches/50_debian_fix_example_path_in_manpage.patch
+++ pal-0.4.3/debian/patches/50_debian_fix_example_path_in_manpage.patch
@@ -0,0 +1,16 @@
+pal (0.4.3-2)  * Added a new Debian specific patch which changes the path to
+                 example.css in pal.1.  Debian installs this file into a
+                 different location than upstream's makefile target
+                 install-doc.  (Closes: #497874)
+
+--- pal.orig/pal.1.template
++++ pal/pal.1.template
+@@ -73,7 +73,7 @@ Do not use colors, regardless of termina
+ Generates output readable by sendmail by adding "From:" and "Subject:" fields and forcing \fB\-\-nocolor\fR.  For example, you could mail yourself a reminder of the upcoming events in the next week with \fBpal \-\-mail \-r 7 | sendmail username\fR.  Note: For the calendar to appear correctly, make sure your email client is using a fixed width font.
+ .TP
+ .B \-\-html
+-Generates a HTML calendar suitable for display on a web page.  It does not generate a complete HTML document so that you can add your website's header and footer around the calendar.  The number of months shown on the calendar can be adjusted with \fB\-c\fR.  You will need to use Cascading Style Sheets (CSS) to change how the calendar appears; if you do not use a style sheet, the calendar will not have any borders.  See \fI/usr/share/doc/pal/example.css\fR for an example style.  SECURITY NOTE: If you set up pal so it is being executed server\(hyside, it is recommended that you do not allow web page visitors to directly change the parameters sent to pal.  Allowing users to pass strange parameters (such as extremely long ones) can be a security risk.
++Generates a HTML calendar suitable for display on a web page.  It does not generate a complete HTML document so that you can add your website's header and footer around the calendar.  The number of months shown on the calendar can be adjusted with \fB\-c\fR.  You will need to use Cascading Style Sheets (CSS) to change how the calendar appears; if you do not use a style sheet, the calendar will not have any borders.  See \fI/usr/share/doc/pal/examples/example.css\fR for an example style.  SECURITY NOTE: If you set up pal so it is being executed server\(hyside, it is recommended that you do not allow web page visitors to directly change the parameters sent to pal.  Allowing users to pass strange parameters (such as extremely long ones) can be a security risk.
+ .TP
+ .B \-\-latex
+ Generates a LaTeX source for a calendar that can be used to generate a printer\(hyfriendly DVI (run "pal \-\-latex > file.tex; latex file.tex"), PostScript or PDF (run "pal \-\-latex > file.tex; pdflatex file.tex").  The number of months shown on the calendar can be adjusted with \fB\-c\fR.
--- pal-0.4.3.orig/debian/patches/51_debian_link_against_ncursesw.patch
+++ pal-0.4.3/debian/patches/51_debian_link_against_ncursesw.patch
@@ -0,0 +1,14 @@
+pal (0.4.3-3)  * Link pal against libncursesw5 instead of libncurses5.
+                 (Closes: #499403)
+
+--- pal.orig/src/Makefile
++++ pal/src/Makefile
+@@ -4,7 +4,7 @@ include Makefile.defs
+ 
+ INCLDIR = -I${prefix}/include `pkg-config --cflags glib-2.0`
+ LIBDIR  =
+-LIBS    = `pkg-config --libs glib-2.0` -lreadline -lncurses
++LIBS    = `pkg-config --libs glib-2.0` -lreadline -lncursesw
+ 
+ SRC     = main.c colorize.c output.c input.c event.c rl.c html.c latex.c \
+           add.c edit.c del.c remind.c search.c manage.c
