[kaffe] GregorianCalendar fixes

Mark Wielaard mark@klomp.org
Fri Nov 21 08:20:03 2003


--=-RxVt1O405kLeLka00L/C
Content-Type: multipart/mixed; boundary="=-aHPNm/qwu5tf02V0N+4g"


--=-aHPNm/qwu5tf02V0N+4g
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

Since I am not a GregorianCalendar expert I was hoping that someone
could review the following patch which I have in my tree from Ito
Kazumitsu. He and I wrote a couple of mauve test cases which are fixed
by this and I see no new failures. But people didn't seem to be
completely comfortable with it back in Augustus/September. It would be
nice if we could create even more test cases to make sure that nothing
else breaks and to have a ChangeLog entry for this patch (Ito?). Don't
really have have time to learn about Calendars so I am just re-posting
this patch in the hope that someone can review it.

Thanks,

Mark

--=-aHPNm/qwu5tf02V0N+4g
Content-Disposition: inline; filename=GregorianCalendar.patch
Content-Type: text/x-patch; name=GregorianCalendar.patch; charset=ISO-8859-1
Content-Transfer-Encoding: base64

SW5kZXg6IGphdmEvdXRpbC9HcmVnb3JpYW5DYWxlbmRhci5qYXZhDQo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg
ZmlsZTogL2N2c3Jvb3QvY2xhc3NwYXRoL2NsYXNzcGF0aC9qYXZhL3V0aWwvR3JlZ29yaWFuQ2Fs
ZW5kYXIuamF2YSx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMjANCmRpZmYgLXUgLXIxLjIwIEdy
ZWdvcmlhbkNhbGVuZGFyLmphdmENCi0tLSBqYXZhL3V0aWwvR3JlZ29yaWFuQ2FsZW5kYXIuamF2
YQkxMiBBdWcgMjAwMyAxMzo0MToyNyAtMDAwMAkxLjIwDQorKysgamF2YS91dGlsL0dyZWdvcmlh
bkNhbGVuZGFyLmphdmEJMjEgTm92IDIwMDMgMTY6MTE6NTYgLTAwMDANCkBAIC0xLDUgKzEsNSBA
QA0KIC8qIGphdmEudXRpbC5HcmVnb3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NbREFZX09GX01PTlRIXSArIDYpIC8gNzsNCisgICAgZmllbGRzW0RBWV9PRl9X
RUVLX0lOX01PTlRIXSA9IChmaWVsZHNbREFZX09GX01PTlRIXSArIDEyKSAvIDc7DQogDQogICAg
IC8vIHdoaWNoIGRheSBvZiB0aGUgd2VlayBhcmUgd2UgKDAuLjYpLCByZWxhdGl2ZSB0byBnZXRG
aXJzdERheU9mV2Vlaw0KICAgICBpbnQgcmVsYXRpdmVXZWVrZGF5ID0gKDcgKyBmaWVsZHNbREFZ
X09GX1dFRUtdIC0gZ2V0Rmlyc3REYXlPZldlZWsoKSkgJSA3Ow0KIA0KLSAgICBmaWVsZHNbV0VF
S19PRl9NT05USF0gPSAoZmllbGRzW0RBWV9PRl9NT05USF0gLSByZWxhdGl2ZVdlZWtkYXkgKyA2
KSAvIDc7DQorICAgIGZpZWxkc1tXRUVLX09GX01PTlRIXSA9IChmaWVsZHNbREFZX09GX01PTlRI
XSAtIHJlbGF0aXZlV2Vla2RheSArIDEyKSAvIDc7DQogDQogICAgIGludCB3ZWVrT2ZZZWFyID0g
KGZpZWxkc1tEQVlfT0ZfWUVBUl0gLSByZWxhdGl2ZVdlZWtkYXkgKyA2KSAvIDc7DQogDQo=

--=-aHPNm/qwu5tf02V0N+4g--

--=-RxVt1O405kLeLka00L/C
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/vjnrxVhZCJWr9QwRAm4xAJsFKlDVCY2ll0+4RlZ6PxZpE4gwUwCghVI+
5ijwKfBR+FohtnvZMe4ldts=
=gX1R
-----END PGP SIGNATURE-----

--=-RxVt1O405kLeLka00L/C--