GNU bug report logs -
#8562
Emacs 23.1 and later don't work in windows 98
Previous Next
Reported by: oslsachem <oslsachem <at> gmail.com>
Date: Tue, 26 Apr 2011 21:59:01 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> So I think we found the culprit, the question is how to make this
> work. But first let's make sure the call to GetTextMetricsW indeed
> fails. Please change this code in w32font_open_internal:
>
> len = GetOutlineTextMetricsW (dc, 0, NULL);
> if (len)
> {
> metrics = (OUTLINETEXTMETRICW *) alloca (len);
> if (GetOutlineTextMetricsW (dc, len, metrics))
> bcopy (&metrics->otmTextMetrics, &w32_font->metrics,
> sizeof (TEXTMETRICW));
> else
> metrics = NULL;
> }
>
> if (!metrics)
> GetTextMetricsW (dc, &w32_font->metrics);
>
> to say this instead:
>
> unsigned e;
> ...
> len = GetOutlineTextMetricsW (dc, 0, NULL);
> if (len)
> {
> metrics = (OUTLINETEXTMETRICW *) alloca (len);
> if (GetOutlineTextMetricsW (dc, len, metrics))
> bcopy (&metrics->otmTextMetrics, &w32_font->metrics,
> sizeof (TEXTMETRICW));
> else
> metrics = NULL;
> }
> else
> e = GetLastError ();
>
> if (!metrics)
> {
> if (!GetTextMetricsW (dc, &w32_font->metrics))
> e = GetLastError ();
> }
>
> Then compile, step through the code again, and tell what value gets
> assigned to e.
http://www.speedyshare.com/files/28673968/Emacs-23.3GDBprintE.txt
Greetings,
Osl
This bug report was last modified 13 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.