Package: bsdmainutils Version: 5.20020211-4.99 Tags: patch Cal and ncal always capitalize the name of a month. Month names should not be capitalized in every locale, and for those where this is required, strftime already gives a capitalized month name.
In Dutch for example, month names are not capitalized, so the following is wrong: $ LANG=nl_NL cal Maart 2005 zo ma di wo do vr za 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 $ I propose to solve this with the following patch. -------------- cut here ---------------------------------------------- --- usr.bin/ncal/ncal.c.orig Fri Mar 4 16:46:52 2005 +++ usr.bin/ncal/ncal.c Fri Mar 4 16:47:35 2005 @@ -610,7 +610,6 @@ #else strftime(mlines->name, sizeof(mlines->name), "%OB", &tm); #endif - mlines->name[0] = toupper((unsigned char)mlines->name[0]); /* * Set first and last to the day number of the first day of this @@ -706,7 +705,6 @@ #else strftime(mlines->name, sizeof(mlines->name), "%OB", &tm); #endif - mlines->name[0] = toupper((unsigned char)mlines->name[0]); /* * Set first and last to the day number of the first day of this -------------- cut here ---------------------------------------------- Regards, Vincent Arkesteijn. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]