From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries? Date: Thu, 6 Oct 2011 14:19:45 +0200 Message-ID: References: <74B14D2A03144E798C9415172D5FE01A@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317903675 16958 80.91.229.12 (6 Oct 2011 12:21:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 12:21:15 +0000 (UTC) Cc: 9653@debbugs.gnu.org To: Kevin Rodgers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 14:21:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBmwk-0002cG-3T for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 14:21:06 +0200 Original-Received: from localhost ([::1]:35102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBmwj-000207-Kb for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 08:21:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBmwd-0001zU-Tz for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 08:21:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBmwY-0000ct-Ad for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 08:20:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBmwY-0000co-71 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 08:20:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBmwg-0005bP-BO for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 08:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 12:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9653 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9653-submit@debbugs.gnu.org id=B9653.131790364221506 (code B ref 9653); Thu, 06 Oct 2011 12:21:02 +0000 Original-Received: (at 9653) by debbugs.gnu.org; 6 Oct 2011 12:20:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBmwL-0005ap-Cy for submit@debbugs.gnu.org; Thu, 06 Oct 2011 08:20:42 -0400 Original-Received: from mail-vx0-f172.google.com ([209.85.220.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBmwJ-0005aa-Iu for 9653@debbugs.gnu.org; Thu, 06 Oct 2011 08:20:40 -0400 Original-Received: by vcbfo11 with SMTP id fo11so2177918vcb.3 for <9653@debbugs.gnu.org>; Thu, 06 Oct 2011 05:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=YsA4bvhnKoDnQFaJxZAfpqL7ZWbDGYfpfCP2IWEg65s=; b=rH3jMQKn2Xa8AMRezNgsS953pqTEWKSL9kv7sjIT0rl0bmBdFFUYwrO9HWZLdLJcj5 dOX5vmEoCgyXkjtcfAXgR1mSVe/qUAe/Au10LolYY0AGInSLAuembrykfScvLANC075B Z8zhImEKgslYm8WicWde9mH++QiEgaSLQMZUA= Original-Received: by 10.68.24.35 with SMTP id r3mr5317032pbf.116.1317903625100; Thu, 06 Oct 2011 05:20:25 -0700 (PDT) Original-Received: by 10.142.223.13 with HTTP; Thu, 6 Oct 2011 05:19:45 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 08:21:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52271 Archived-At: On Thu, Oct 6, 2011 at 05:53, Kevin Rodgers wro= te: > Which seems more like a "null string"? > > -*- mode: C -*- > char *null_string =3D NULL; > char *empty_string =3D ""; empty_string, IMHO, though the names are certainly misleading. "" is clearly a string, NULL is a null pointer to anything (or nothing). There's nothing stringy in NULL. I'm with Kenichi and Eli in this, I think "" is more correct/clean than nil in this case. (or x "") is not difficult to use, but (and (not (eq x "")) x) isn't rocket science either, and rests to see how often it is needed anyway. Funnily enough, a few years back I did a change to uniquify where I defended the idea that a basename of "" and nil were one and the same (basename being something with a narrow definition specific to desktop.el) and Stefan argued (and prevailed) for the relevant function returning "" and leaving the decision of treating it like nil to the callers... And he was right: it was a cleaner, more generic interface. =C2=A0 =C2=A0 Juanma