From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#11082: 24.0.94; u.glyphless member in struct glyph does not fit in 32 bits Date: Sun, 25 Mar 2012 09:29:25 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <83zkb6trdb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1332635468 29139 80.91.229.3 (25 Mar 2012 00:31:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2012 00:31:08 +0000 (UTC) Cc: 11082@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 25 01:31:07 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SBbMR-0006WN-7P for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2012 01:31:07 +0100 Original-Received: from localhost ([::1]:36713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBbMQ-0005aK-5M for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Mar 2012 20:31:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBbMN-0005Zf-4b for bug-gnu-emacs@gnu.org; Sat, 24 Mar 2012 20:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBbML-0006pf-CJ for bug-gnu-emacs@gnu.org; Sat, 24 Mar 2012 20:31:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBbML-0006pb-8w for bug-gnu-emacs@gnu.org; Sat, 24 Mar 2012 20:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SBbqL-00072F-NX for bug-gnu-emacs@gnu.org; Sat, 24 Mar 2012 21:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Mar 2012 01:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11082 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11082-submit@debbugs.gnu.org id=B11082.133263727526984 (code B ref 11082); Sun, 25 Mar 2012 01:02:01 +0000 Original-Received: (at 11082) by debbugs.gnu.org; 25 Mar 2012 01:01:15 +0000 Original-Received: from localhost ([127.0.0.1]:37295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBbpY-000717-0Z for submit@debbugs.gnu.org; Sat, 24 Mar 2012 21:01:15 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:57347) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBbos-0006zy-IU for 11082@debbugs.gnu.org; Sat, 24 Mar 2012 21:01:10 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id A1E44C055D; Sun, 25 Mar 2012 09:29:25 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58108 Archived-At: >>>>> On Sat, 24 Mar 2012 09:54:09 +0100, Andreas Schwab said: >> ?? Isn't the size of a union defined by its widest member? > The size of u.val is defined by the size of unsigned. >> If so, we just end up wasting some storage here, but we should >> never truncate a bit field. > It's not about truncation, but about ignored bits in GLYPH_EQUAL_P. Yes, I meant that. A test case is as follows. I checked it with Ubuntu 11.10, GTK+ build. 1. emacs -Q 2. (insert #xe0100) C-j 3. C-p C-p C-e C-b C-b C-d 1 C-e Now the line at the cursor is "(insert #xe0101)". 4. C-j The glyphless glyph just added is shown as "0E0100" instead of "0E0101". YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp