Package: lunar / 2.2-6
Metadata
Package | Version | Patches format |
---|---|---|
lunar | 2.2-6 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
01_strip_trailing_whitespace.diff | (download) |
lunar.c |
46 23 23 - 0 ! |
strip trailing whitespace from lunar.c First applied in 2.2-4. |
02_fix_compiler_warnings.diff | (download) |
lunar.c |
13 5 8 - 0 ! |
fix gcc compiler warnings found in lunar.c Revise lunar.c to remove GCC compiler warnings such as: . * implicit declaration of function CmpDate * implicit declaration of function exit * incompatible implicit declaration of built-in function exit * unused variable d * suggest parentheses around && within || * variable nYear set but not used . First applied since 2.2-1; revised in 2.2-3 and 2.2-4. . In July 2015, Xie Xun found a bug where lunar 2.2-4 always outputs Solar Year 1900 no matter what the date of lunar-to-solar conversion is, and traced to a bug that I (Anthony) introduced in 2.2-4: When I removed the unused nYear variable, I had mistakenly removed the necessary call to make_yday(). Xie Xuns report and patch in Bug #792472 fixes the bug. |
03_add_full_path_to_lunar_bitmap.diff | (download) |
lunar.c |
2 1 1 - 0 ! |
add full path of lunar.bitmap to lunar.c Prepend "/usr/share/lunar/" to "lunar.bitmap" to make "lunar -b" actually works. Thanks to Jeronimo Pellegrini for finding the bug and submitted a bug report, with patch, to Debian on 2002-09-27. . First applied in 2.2-2. |
04_add_big5_and_utf8_output.diff | (download) |
lunar.c |
216 207 9 - 0 ! |
add big5 and utf-8 output options for lunar.c Big5 support was added to 2.2-1 in 2002. . UTF-8 support was added to 2.2-3 at the request of LI Daobing in 2006, see Debian Bug#288170. However, it could only print simplified Chinese in UTF-8 mode back then. . In 2013, two new options, -s and -t, were added to 2.2-4 so that the end-user may choose either simplified or traditional Chinese in UTF-8 mode. |
05_fix_output_on_year_2033.diff | (download) |
tables.h |
2 1 1 - 0 ! |
fix lunar-2.2 output on year 2033 On 2006-05-26, CHENG Yuk-Pong reported: . 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. . and provided a patch on the Debian BTS. . LI Daobing reviewed the patch in October 2008, and noted: . the patch provided by bug reporter still have a bug, the 10th month of 2003 in chinese calendar should have 30 days (a big month). so the correct value should be 0x04afb. . Daobing then corrected the patch, prepared a NMU of lunar-2.2-3.1, which was uploaded by Alexander Reichle-Schmehl on 2008-10-08. |
06_use_locale_and_current_date.diff | (download) |
lunar.c |
91 81 10 - 0 ! |
use current locale and system time for display by default I was getting too lazy to type out the long string of parameters to manually set the output character set and the full date every time I wanted to check the current date in Lunar calendar, hence this patch. It was also a good little exercise to brush up my C programming skill. :-) . First applied in 2.2-4. |
07_fix_segfault_aggressive loop optimizations.diff | (download) |
lunar.bitmap |
2 1 1 - 0 ! |
fix "lunar -b" segfault when compiled with -o2 in gcc-4.8 lunar.bitmap contained a line that was too long with extraneous trailing spaces, causing an overflow the array in readBM(), but did not ause any visible error previously. . When compiled with GCC 4.8, however, this bug results in segmentation fault, probably due to the new aggressive loop optimizations used in -O2 and -O3. . |
10_complete_the_makefile.diff | (download) |
Makefile |
19 16 3 - 0 ! |
complete the makefile so debian/rules can truly be minimal The special provisions in previous debian/rules are now moved into the upstream Makefile. . Also, the explicit compilation rules in Makefile are removed so that compiler flags set by dpkg-buildflags may get through. |
20_update_man_page.diff | (download) |
lunar.1 |
122 88 34 - 0 ! |
update lunar.1 man page with added options Jidanni reported in 2009: . There are options, e.g., --utf8, on --help that are not documented on the man page. Indeed, also mention --help itself. . In October 2013, I finally worked on the man page to document the new options and changes as found in the Debian version of lunar 2.2-4. |