From: "Willener, Pat"
> http://en.wikipedia.org/wiki/Big5
Ok. Thanks for the pointer.
From: "Leo Jay"
> the attachment is a sample .listing file.
I don't know if anyone plans to do anything about multi-byte
characters anywhere in wget, and I know that I can't read them, but I
see no reason why the existing code (with extensions already suggested)
should not be able to handle any byte-character string you specify for a
month name, whether or not it makes any sense as byte characters. (One
could add an array of different spellings of "total", too.)
That is, I believe that you could append your big5_months[] strings
to the existing months[] array (and add as many other sets (of twelve)
as you'd like), and then make changes something like:
[...]
#define MONTHS_LEN (sizeof( months)/ sizeof( months[ 0]))
for (i = 0; i < MONTHS_LEN; i++)
[...]
if (i != MONTHS_LEN)
[...]
month = i% 12;
[...]
Assuming that the strings like "26+ 0xa4+ 0xeb are day numbers, it
appears that you got pretty lucky with wget's simple-minded
day_number-to-integer conversion method. Not much work needed there.
Note that a few bytes of storage could be saved by specifying empty
strings ("") instead of duplicates, where other languages look like
English. For example:
static const char *months[] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun", /* English. */
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
"", "", "Mär", "", "Mai", "", /* German. */
"", "", "", "Okt", "", "Dez"
};
As for getting changes like this into the main development code, I'm
probably the wrong person to ask, as I've been trying for years to get a
set of VMS-related changes adopted with no obvious success.
A while back, another fellow had a similar complaint about German
month names:
http://www.mail-archive.com/[email protected]/msg07775.html
I seem to have sent him some private e-mail, but I didn't post anything
to the forum at that time. But it does show that there is some interest
in this problem other than yours.
------------------------------------------------------------------------
Steven M. Schweda [EMAIL PROTECTED]
382 South Warwick Street (+1) 651-699-9818
Saint Paul MN 55105-2547