Some time ago, Hrvoje Niksic wrote...
|+
| "Kirill M. Katsnelson" <kkm(a)kis.ru> writes:
|
| > This is what undecided streams are for, but the comment in md5 about
| > hit and miss is unfortunately rather correct...
|
| OK, should I default the coding system to `undecided'? BTW, Jareth,
| could you please enter this discussion? I still haven't heard back
| from you regarding md5.c. I'd like to know that my changes to it are
| correct before attempting to work more on that file.
I think this is the best guess, and that's what is already done in md5.c.
In md5_coding_system() at line 484:
[If string, not buffer, then]
/* Attempt to autodetect the coding of the string. This is
VERY hit-and-miss. */
enum eol_type eol = EOL_AUTODETECT;
coding_system = Fget_coding_system (Qundecided);
determine_real_coding_system (XLSTREAM (istream),
&coding_system, &eol);
Kirill