Also, instead of using non-existent D_MD_ORDER, cal should rather use nl_langinfo(D_FMT) and look in which order %d, %m and %y are.
Samuel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

