* Build error with _UNICODE on w32.
@ 2008-05-17 4:49 KOBAYASHI Yasuhiro
2008-05-17 7:19 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: KOBAYASHI Yasuhiro @ 2008-05-17 4:49 UTC (permalink / raw)
To: emacs-pretest-bug
I get the following error at w32.c:774.
It was not occured before 9 May 2008.
$ ./configure.bat --with-gcc --no-cygwin --cflags \
-I/usr/local/include --cflags -D_UNICODE
$ make bootstrap SHELL=bash
echo oo-spd/i386/w32font.o oo-spd/i386/w32uniscribe.o >> oo-spd/i386/buildobj.lst
make[2]: Leaving directory `/home/kobayays/src/emacs-vanilla/src'
"./oo-spd/i386/temacs.exe" -batch -l loadup bootstrap
make[1]: *** [bootstrap-emacs] Error 5
make[1]: Leaving directory `/home/kobayays/src/emacs-vanilla/src'
make: *** [bootstrap-gmake] Error 2
--
KOBAYASHI Yasuhiro <kobayays@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Build error with _UNICODE on w32.
2008-05-17 4:49 Build error with _UNICODE on w32 KOBAYASHI Yasuhiro
@ 2008-05-17 7:19 ` Eli Zaretskii
2008-05-17 13:33 ` KOBAYASHI Yasuhiro
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2008-05-17 7:19 UTC (permalink / raw)
To: KOBAYASHI Yasuhiro; +Cc: emacs-pretest-bug
> From: KOBAYASHI Yasuhiro <kobayays@gmail.com>
> Date: Sat, 17 May 2008 13:49:03 +0900
> Cc:
>
> I get the following error at w32.c:774.
> It was not occured before 9 May 2008.
What do you mean by ``with _UNICODE''?
> make[2]: Leaving directory `/home/kobayays/src/emacs-vanilla/src'
> "./oo-spd/i386/temacs.exe" -batch -l loadup bootstrap
> make[1]: *** [bootstrap-emacs] Error 5
Error code 5 is "Access denied". Is temacs.exe executable? That is,
can you invoke it from the shell?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Build error with _UNICODE on w32.
2008-05-17 7:19 ` Eli Zaretskii
@ 2008-05-17 13:33 ` KOBAYASHI Yasuhiro
2008-05-17 14:01 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: KOBAYASHI Yasuhiro @ 2008-05-17 13:33 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-pretest-bug
In message Re: Build error with _UNICODE on w32.
on Sat, 17 May 2008 10:19:31 +0300
Eli Zaretskii <eliz@gnu.org> wrote:
> > I get the following error at w32.c:774.
> > It was not occured before 9 May 2008.
> What do you mean by ``with _UNICODE''?
It means I execute the following configure.bat.
$ ./configure.bat --with-gcc --no-cygwin --cflags \
-I/usr/local/include --cflags -D_UNICODE
> > make[2]: Leaving directory `/home/kobayays/src/emacs-vanilla/src'
> > "./oo-spd/i386/temacs.exe" -batch -l loadup bootstrap
> > make[1]: *** [bootstrap-emacs] Error 5
> Error code 5 is "Access denied". Is temacs.exe executable? That is,
> can you invoke it from the shell?
No, I gets some error dialog boxes.
--
KOBAYASHI Yasuhiro <kobayays@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Build error with _UNICODE on w32.
2008-05-17 13:33 ` KOBAYASHI Yasuhiro
@ 2008-05-17 14:01 ` Eli Zaretskii
2008-05-20 6:44 ` KOBAYASHI Yasuhiro
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2008-05-17 14:01 UTC (permalink / raw)
To: KOBAYASHI Yasuhiro; +Cc: emacs-pretest-bug
> From: KOBAYASHI Yasuhiro <kobayays@gmail.com>
> Cc: emacs-pretest-bug@gnu.org
> Date: Sat, 17 May 2008 22:33:33 +0900
>
> In message Re: Build error with _UNICODE on w32.
> on Sat, 17 May 2008 10:19:31 +0300
> Eli Zaretskii <eliz@gnu.org> wrote:
>
> > > I get the following error at w32.c:774.
> > > It was not occured before 9 May 2008.
>
> > What do you mean by ``with _UNICODE''?
>
> It means I execute the following configure.bat.
>
> $ ./configure.bat --with-gcc --no-cygwin --cflags \
> -I/usr/local/include --cflags -D_UNICODE
I wasn't aware this is even supported. It is certainly not
used/tested enough to be recommended for general use. We don't
consistently use the TCHAR type or any other types that magically
switch to wchar_t under UNICODE compilation, and freely mix text
strings returned from Windows APIs with plain `char *' pointers and
strings. To get Emacs support the Unicode Windows APIs will take a
major overhaul of the code.
What did you expect to get with the -D_UNICODE switch that you don't
get without it?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Build error with _UNICODE on w32.
2008-05-17 14:01 ` Eli Zaretskii
@ 2008-05-20 6:44 ` KOBAYASHI Yasuhiro
2008-05-20 9:14 ` Jason Rumney
2008-05-20 18:20 ` Eli Zaretskii
0 siblings, 2 replies; 7+ messages in thread
From: KOBAYASHI Yasuhiro @ 2008-05-20 6:44 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-pretest-bug
In message Re: Build error with _UNICODE on w32.
on Sat, 17 May 2008 17:01:22 +0300
Eli Zaretskii <eliz@gnu.org> wrote:
> I wasn't aware this is even supported. It is certainly not
> used/tested enough to be recommended for general use. We don't
> consistently use the TCHAR type or any other types that magically
> switch to wchar_t under UNICODE compilation, and freely mix text
> strings returned from Windows APIs with plain `char *' pointers and
> strings. To get Emacs support the Unicode Windows APIs will take a
> major overhaul of the code.
> What did you expect to get with the -D_UNICODE switch that you don't
> get without it?
I was trying to maintain the IME-patch on w32. I need it to
input the unicode character.
The following is ad hoc one.
w32.c:
@@ -773,7 +773,7 @@
dflt_passwd.pw_gid = get_rid (group_token.PrimaryGroup);
dlength = sizeof (domain);
if (lookup_account_sid (NULL, group_token.PrimaryGroup,
- gname, &glength, NULL, &dlength,
+ gname, &glength, domain, &dlength,
&user_type))
strcpy (dflt_group_name, gname);
}
--
KOBAYASHI Yasuhiro <kobayays@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Build error with _UNICODE on w32.
2008-05-20 6:44 ` KOBAYASHI Yasuhiro
@ 2008-05-20 9:14 ` Jason Rumney
2008-05-20 18:20 ` Eli Zaretskii
1 sibling, 0 replies; 7+ messages in thread
From: Jason Rumney @ 2008-05-20 9:14 UTC (permalink / raw)
To: KOBAYASHI Yasuhiro; +Cc: emacs-pretest-bug, Eli Zaretskii
KOBAYASHI Yasuhiro wrote:
> I was trying to maintain the IME-patch on w32. I need it to
> input the unicode character.
>
Unicode input from IMEs is already supported in 23.0.60. You probably
need to rewrite your patch to take this into account.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Build error with _UNICODE on w32.
2008-05-20 6:44 ` KOBAYASHI Yasuhiro
2008-05-20 9:14 ` Jason Rumney
@ 2008-05-20 18:20 ` Eli Zaretskii
1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2008-05-20 18:20 UTC (permalink / raw)
To: KOBAYASHI Yasuhiro; +Cc: emacs-pretest-bug
> From: KOBAYASHI Yasuhiro <kobayays@gmail.com>
> Cc: emacs-pretest-bug@gnu.org
> Date: Tue, 20 May 2008 15:44:10 +0900
>
> The following is ad hoc one.
>
> w32.c:
> @@ -773,7 +773,7 @@
> dflt_passwd.pw_gid = get_rid (group_token.PrimaryGroup);
> dlength = sizeof (domain);
> if (lookup_account_sid (NULL, group_token.PrimaryGroup,
> - gname, &glength, NULL, &dlength,
> + gname, &glength, domain, &dlength,
> &user_type))
> strcpy (dflt_group_name, gname);
> }
I don't see how this alone could have settled everything. For
example, this very call to lookup_account_sid should pass wchar_t *
pointers instead of char *, because under UNICODE we call the
wide-character version of the function that returns strings encoded in
UTF-16. So this call (as well as many others) will simply not work
correctly under UNICODE.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-05-20 18:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-17 4:49 Build error with _UNICODE on w32 KOBAYASHI Yasuhiro
2008-05-17 7:19 ` Eli Zaretskii
2008-05-17 13:33 ` KOBAYASHI Yasuhiro
2008-05-17 14:01 ` Eli Zaretskii
2008-05-20 6:44 ` KOBAYASHI Yasuhiro
2008-05-20 9:14 ` Jason Rumney
2008-05-20 18:20 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).