emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build error with _UNICODE on w32.


From: KOBAYASHI Yasuhiro
Subject: Re: Build error with _UNICODE on w32.
Date: Tue, 20 May 2008 15:44:10 +0900
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (windows-nt)

In message Re: Build error with _UNICODE on w32.
 on Sat, 17 May 2008 17:01:22 +0300
 Eli Zaretskii <address@hidden> 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 <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]