From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: Unicode support for the MS Windows clipboard Date: Wed, 28 Jul 2004 10:34:39 -0700 (PDT) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20040728.103439.186978436.Takaaki.Ota@am.sony.com> References: <41078F73.1060705@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091036137 12870 80.91.224.253 (28 Jul 2004 17:35:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2004 17:35:37 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, handa@m17n.org, jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 28 19:35:25 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpsKq-0000We-00 for ; Wed, 28 Jul 2004 19:35:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpsNz-0000Hw-Se for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2004 13:38:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BpsNt-0000Hr-6u for emacs-devel@gnu.org; Wed, 28 Jul 2004 13:38:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BpsNs-0000Hf-Ji for emacs-devel@gnu.org; Wed, 28 Jul 2004 13:38:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpsNs-0000Hc-Gw for emacs-devel@gnu.org; Wed, 28 Jul 2004 13:38:32 -0400 Original-Received: from [160.33.98.75] (helo=mail8.fw-bc.sony.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BpsKL-0005Wo-PT; Wed, 28 Jul 2004 13:34:53 -0400 Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail8.fw-bc.sony.com (8.12.11/8.12.11) with ESMTP id i6SHYjVY020419; Wed, 28 Jul 2004 17:34:45 GMT Original-Received: from localhost ([43.191.18.96]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id i6SHYibw014875; Wed, 28 Jul 2004 17:34:45 GMT Original-To: Benjamin.Riefenstahl@epost.de In-Reply-To: X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-4.0.66 on Emacs-21.3.50.1 (i386-msvc-nt5.1.2600) of 2004-07-23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26062 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26062 Wed, 28 Jul 2004 14:08:07 +0200: Benjamin Riefenstahl wrote: > Hi Jason, > > > >>Tak Ota writes: > >>>libc.lib(heapinit.obj) : error LNK2005: __heap_init already defined in > >>>temacs1.lib(w32heap.obj) > > Jason Rumney writes: > > Is the new implementation of w32select.c using a C library function > > that internally mallocs memory using the C library malloc instead of > > Emacs' one? > > Ah, now I understand. The code is using atexit(), os_subtype is a red > herring. > > We are talking about MSC and static linking and the problem with > atexit() mentioned in w32.c. I commented on that in the code. The > problem can't occur in a dynamic build, which is all that Mingw (my > environment) supports. > > So how do I simulate atexit()? The method using signals as used in > w32.c doesn't seem to work with Mingw, I tried that. Benny, For you information, I confirmed term_ntproc() is actually called at exit on MSVC build. I think w32.c should provide emacs version of atexit() somehow. -Tak