From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: auto-recognizing utf-16le ? Date: Wed, 17 Jun 2009 09:43:04 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245199413 25513 80.91.229.12 (17 Jun 2009 00:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 00:43:33 +0000 (UTC) Cc: emacs-devel@gnu.org, miles@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 17 02:43:29 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MGjFQ-0000nT-IV for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2009 02:43:28 +0200 Original-Received: from localhost ([127.0.0.1]:33214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGjFQ-0001aT-0N for ged-emacs-devel@m.gmane.org; Tue, 16 Jun 2009 20:43:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGjFJ-0001aA-In for emacs-devel@gnu.org; Tue, 16 Jun 2009 20:43:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGjFE-0001Ov-4w for emacs-devel@gnu.org; Tue, 16 Jun 2009 20:43:20 -0400 Original-Received: from [199.232.76.173] (port=42525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGjFD-0001OV-Qa for emacs-devel@gnu.org; Tue, 16 Jun 2009 20:43:15 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:61129) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGjFB-0002SQ-0E; Tue, 16 Jun 2009 20:43:13 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n5H0hAD5010460; Wed, 17 Jun 2009 09:43:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n5H0h9Yj029256; Wed, 17 Jun 2009 09:43:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n5H0h57n018854; Wed, 17 Jun 2009 09:43:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MGjF3-00032D-00; Wed, 17 Jun 2009 09:43:05 +0900 In-reply-to: (message from Andreas Schwab on Tue, 16 Jun 2009 17:01:23 +0200) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111544 Archived-At: In article , Andreas Schwab writes: > Kenichi Handa writes: > > And, I've just installed a fix of another bug. > I think instead of > while (detect_info->rejected != CATEGORY_MASK_UTF_16) > you probably want to check this: > while ((detect_info->rejected & CATEGORY_MASK_UTF_16) != CATEGORY_MASK_UTF_16) > since there may be bits for other categories already set in rejected. Ah! You are right, thank you. I installed that fix. --- Kenichi Handa handa@m17n.org