all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: oslsachem <oslsachem@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 8562@debbugs.gnu.org
Subject: bug#8562: Emacs 23.1 and later don't work in windows 98
Date: Sun, 5 Jun 2011 03:58:25 +0200	[thread overview]
Message-ID: <BANLkTinYUJUhHGQKwy77YMMwZTREnG80vQ@mail.gmail.com> (raw)
In-Reply-To: <837h92dqai.fsf@gnu.org>

>> So I'm going to put calls to the function GetLastError after each call
>> to each of these unicode functions to see what happens.

I have only observed that:
- Emacs chooses the ansi versions of the functions LookupAccountSid
and GetFileSecurity.
- The next problematic unicode function is GetGlyphOutlineW which,
like GetOutlineTextMetricsW and GetTextMetricsW, is just a stub.

The breakpoints I have set for the calls to the other unicode
functions are never reached before the Emacs window is opened and is
"operative" and then, after a while, I simply quit.

http://www.speedyshare.com/files/28808320/Emacs-23.3GDBGetErrors.txt

> An alternative would be to download and install libunicows from here:
>
>  http://libunicows.sourceforge.net/
>
> and then manually add "-lunicows" before all the other -lFOO libraries
> on the link command line in src/makefile, and rebuild Emacs.  If that
> binary works, then we at least will know that the linking against
> unicows.dll is the root cause of all these problems.

I have compiled the unmodified officially released source code of
Emacs-23.3 with assertions enabled and libunicows. And the binary
works.

http://www.speedyshare.com/files/28808321/Emacs-23.3Working.png

http://www.speedyshare.com/files/28808322/Emacs-23.3ToolTip.png

However, Emacs still chooses the ansi versions of the functions
LookupAccountSid and GetFileSecurity, presumably because it bases the
decision on checking the version of Windows and not on whether the
functions are actually available.

http://www.speedyshare.com/files/28808323/Emacs-23.3GDBlibunicows.txt

> Whether to switch to linking Emacs with libunicows or manually load it
> on Windows 9X and call the Unicode functions through function
> pointers, is a different issue.  Given the small number of affected
> functions, I'm not sure what's best.

IMHO, using function pointers would mean increasing the number of
lines of explicit code, whereas using the unicows loader would open up
the possibility of decreasing the number of lines of explicit code by
unifying w9x/Me and NT/XP branches of code which handle cases of
unicode support.
On the other hand, I can imagine that the introduction of the
libunicows dependency may be an annoyance to users/developers who
don't actually need to make use of it on their systems. Perhaps this
could be addressed with a new configure option?

Greetings,
                 Osl





  reply	other threads:[~2011-06-05  1:58 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 21:55 bug#8562: Emacs 23.1 and later don't work in windows 98 oslsachem
2011-04-27  3:09 ` Eli Zaretskii
2011-05-06  1:38   ` oslsachem
2011-05-06 11:52     ` Eli Zaretskii
2011-05-06 15:28       ` Eli Zaretskii
2011-05-22 21:32       ` oslsachem
2011-05-23 13:43         ` Jason Rumney
2011-05-24 19:31           ` oslsachem
2011-05-23 17:39         ` Eli Zaretskii
2011-05-24 19:32           ` oslsachem
2011-05-24 20:37             ` Eli Zaretskii
2011-05-25  2:01               ` oslsachem
2011-05-25  4:28                 ` Eli Zaretskii
2011-05-25 10:53                   ` oslsachem
2011-05-25 16:44                     ` Eli Zaretskii
2011-05-26  1:50                       ` oslsachem
2011-05-27 14:04                         ` Eli Zaretskii
2011-05-27 17:22                           ` oslsachem
2011-05-27 18:17                             ` Eli Zaretskii
2011-05-27 16:13                         ` oslsachem
2011-05-27 17:15                           ` Eli Zaretskii
2011-05-27 18:33                             ` oslsachem
2011-05-27 20:51                               ` Eli Zaretskii
2011-05-30 15:12                                 ` oslsachem
2011-05-30 18:43                                   ` Eli Zaretskii
2011-05-31 18:16                                     ` oslsachem
2011-05-31 21:02                                       ` Eli Zaretskii
2011-05-31 21:04                                       ` Eli Zaretskii
2011-06-02 23:41                                         ` oslsachem
2011-06-03  7:10                                           ` Eli Zaretskii
2011-06-03  8:29                                           ` Eli Zaretskii
2011-06-03 20:10                                             ` oslsachem
2011-06-03 20:51                                               ` oslsachem
2011-06-03 22:52                                                 ` oslsachem
2011-06-04  7:11                                                   ` Eli Zaretskii
2011-06-05  1:58                                                     ` oslsachem [this message]
2011-06-05  3:07                                                       ` Eli Zaretskii
2011-06-05  5:48                                                         ` Eli Zaretskii
2011-06-05 22:32                                                         ` oslsachem
2011-06-07 19:25                                                           ` oslsachem
2011-06-07 20:32                                                             ` Eli Zaretskii
2011-06-08 18:11                                                               ` oslsachem
2011-06-08 20:36                                                                 ` Eli Zaretskii
2011-06-12 21:47                                                               ` oslsachem
2011-10-01 11:06                                                                 ` Eli Zaretskii
2011-10-26 23:05                                                                   ` oslsachem
2011-10-01 11:03                                                               ` Eli Zaretskii
2011-10-26 22:46                                                                 ` oslsachem
2011-10-27 14:53                                                                   ` Eli Zaretskii
     [not found]                                                                     ` <CADv-x1szHOjvVzg8xAYtZNE4iByugKeQz37SY+-dNVucioB70w@mail.gmail.com>
2011-10-28 10:21                                                                       ` Eli Zaretskii
2011-10-28 12:11                                                                         ` Eli Zaretskii
2011-10-29 22:24                                                                           ` oslsachem
2011-11-04 11:42                                                                             ` Eli Zaretskii
2011-11-04 20:59                                                                               ` oslsachem
2011-11-04 22:01                                                                                 ` Eli Zaretskii
2011-10-28 10:10                                                                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTinYUJUhHGQKwy77YMMwZTREnG80vQ@mail.gmail.com \
    --to=oslsachem@gmail.com \
    --cc=8562@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.