Package: lunar
Version: 2.2-3
Tags: patch

I know this is a upstream bug, but I cannot contact any of the upstreams
-- the email simpily bounce. So I am sending them here, hoping this could
applied to Debian source.

I have found a bug in the lunar-2.2, on the leap months in year 2033.
The year 2033 is a special case in modern Chinese Lunar Calendar,
as the 冬至 must be on 11th month.


Reference:
Fake Leap Months in the Chinese Calendar: From the Jesuits to 2033.
  - http://www.math.nus.edu.sg/aslaksen/calendar/ichsea.pdf
Wikipedia
  - http://zh.wikipedia.org/w/index.php?title=%E8%BE%B2%E6%9B%86

The table.h should be changed to:

$ diff -aur tables.h.orig tables.h
--- tables.h.orig       2006-05-12 12:59:30.593750000 +0800
+++ tables.h    2006-05-12 12:59:56.828125000 +0800
@@ -86,7 +86,7 @@
    0x0a5b0, 0x15176, 0x052b0, 0x0a930, 0x07954,       /* 2020 */
    0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6,       /* 2025 */
    0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, 0x05aa0,       /* 2030 */
-    0x076a3, 0x096d0, 0x04bd7, 0x04ad0, 0x0a4d0,       /* 2035 */
+    0x076a3, 0x096d0, 0x04abb, 0x04ad0, 0x0a4d0,       /* 2035 */
    0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, 0x0b5a0,       /* 2040 */
    0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0,       /* 2045 */
    0x0aa50, 0x1b255, 0x06d20, 0x0ada0                 /* 2049 */


Regards,
Cheng Yuk-Pong

Attachment: tables-h.patch
Description: Binary data

Reply via email to