* Build error with _UNICODE on w32.
@ 2008-05-17 4:49 KOBAYASHI Yasuhiro
2008-05-17 7:19 ` Eli Zaretskii
2011-03-10 6:59 ` bug#265: " Glenn Morris
0 siblings, 2 replies; 12+ 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] 12+ 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
2011-03-10 6:59 ` bug#265: " Glenn Morris
1 sibling, 1 reply; 12+ 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] 12+ 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; 12+ 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] 12+ 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; 12+ 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] 12+ 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; 12+ 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] 12+ 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; 12+ 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] 12+ 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; 12+ 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] 12+ messages in thread
* bug#265: 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
@ 2011-03-10 6:59 ` Glenn Morris
2011-03-10 9:08 ` Eli Zaretskii
1 sibling, 1 reply; 12+ messages in thread
From: Glenn Morris @ 2011-03-10 6:59 UTC (permalink / raw)
To: 265-done
Thanks for the report. Your report was against an old version of Emacs,
and the issue you describe could not be reproduced. The latest version
is 23.3. Please open new reports for any issues you have with the new
version.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#265: Build error with _UNICODE on w32.
2011-03-10 6:59 ` bug#265: " Glenn Morris
@ 2011-03-10 9:08 ` Eli Zaretskii
2011-03-10 18:06 ` Glenn Morris
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2011-03-10 9:08 UTC (permalink / raw)
To: Glenn Morris; +Cc: 265
> From: Glenn Morris <rgm@gnu.org>
> Date: Thu, 10 Mar 2011 01:59:19 -0500
> Cc:
>
> Thanks for the report. Your report was against an old version of Emacs,
> and the issue you describe could not be reproduced. The latest version
> is 23.3. Please open new reports for any issues you have with the new
> version.
Actually, I'm sure that this can be reproduced at will. Building a
Windows port with -D_UNICODE is simply not supported. I'm not
surprised that the resulting binary crashes.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#265: Build error with _UNICODE on w32.
@ 2008-05-17 4:49 KOBAYASHI Yasuhiro
0 siblings, 0 replies; 12+ 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] 12+ messages in thread
end of thread, other threads:[~2011-07-09 5:29 UTC | newest]
Thread overview: 12+ 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
2011-03-10 6:59 ` bug#265: " Glenn Morris
2011-03-10 9:08 ` Eli Zaretskii
2011-03-10 18:06 ` Glenn Morris
2011-07-09 5:29 ` Glenn Morris
-- strict thread matches above, loose matches on Subject: below --
2008-05-17 4:49 KOBAYASHI Yasuhiro
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.