Hello,
Thanks to shays ppc we found the bug :-) , attached is a patch to fix
the problem.
I will release a new version of libhdate with this fix soon, next
weekend or after shviee shell pesach, I hope :-) ,
Until than it is possible to add this as a patch to the package.
Hag samech
Kobi
Index: examples/hcal/hcal.c
===================================================================
--- examples/hcal/hcal.c (revision 533)
+++ examples/hcal/hcal.c (working copy)
@@ -414,7 +414,7 @@
int year;
/* user opts */
- char c;
+ int c;
int opt_h = 0; /* -h html format flag */
int opt_d = 0; /* -d Diaspora holidays */
int opt_i = 0; /* -i External css file */
@@ -426,7 +426,7 @@
setlocale (LC_ALL, "");
/* command line parsing */
- while ((c = getopt (argc, argv, "shdi")) != EOF)
+ while ((c = getopt (argc, argv, "shdi")) != -1)
{
switch (c)
{
Index: examples/hcal/hdate.c
===================================================================
--- examples/hcal/hdate.c (revision 533)
+++ examples/hcal/hdate.c (working copy)
@@ -523,7 +523,7 @@
main (int argc, char *argv[])
{
hdate_struct h; /* The Hebrew date */
- char c;
+ int c;
int day; /* The Gregorian date */
int month;
@@ -550,7 +550,7 @@
setlocale (LC_ALL, "");
/* command line parsing */
- while ((c = getopt (argc, argv, "sctShHrRdil:L:z:")) != EOF)
+ while ((c = getopt (argc, argv, "sctShHrRdil:L:z:")) != -1)
{
switch (c)
{