From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +M/CJJBpc2QHUQEASxT56A (envelope-from ) for ; Sun, 28 May 2023 16:47:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GCRFJJBpc2QMewAAauVa8A (envelope-from ) for ; Sun, 28 May 2023 16:47:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D37673DE91 for ; Sun, 28 May 2023 16:47:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3HfZ-0004hv-67; Sun, 28 May 2023 10:46:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3HfX-0004hN-KH for emacs-orgmode@gnu.org; Sun, 28 May 2023 10:46:51 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3HfV-0004WG-Vw for emacs-orgmode@gnu.org; Sun, 28 May 2023 10:46:51 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 479A2179260 for ; Sun, 28 May 2023 10:46:46 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type; s=sasl; bh=5ZB lFdNIG8ifH4AAXNXgSBTrOePqF8kABGTIurDFeg0=; b=QUdTsLB5EkljgmeCHBa Shcp4QIYR72hBHnBTA17di7EZvoh7rzcF1i8WT8dwkf9wnZCfj+vA0/R+UWbq9Ux LjT2jnVJv9iOG81zrJtrfkby/yKXo26tpuXnaJooK/adN4cyasQSpB8VXq9cDiQj W2Cu/kLpEUEUblEvLUHvV3/M= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 4028217925F for ; Sun, 28 May 2023 10:46:46 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id C126A17925D for ; Sun, 28 May 2023 10:46:45 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 1205912088F; Sun, 28 May 2023 10:46:45 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 0DE061200CB for ; Sun, 28 May 2023 10:46:45 -0400 (EDT) Date: Sun, 28 May 2023 10:46:45 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: Preserving leading zeros Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1741096510-2107514434-1685285205=:89343" X-Pobox-Relay-ID: 77E08948-FD66-11ED-9D05-307A8E0A682E-56320186!pb-smtp2.pobox.com Received-SPF: pass client-ip=64.147.108.71; envelope-from=wtd@pobox.com; helo=pb-smtp2.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685285264; a=rsa-sha256; cv=none; b=ZQKmXtp4CLy+1Q2hjSTxpqhZB+wus5U91nyMVx0qWe2qFVIvTZhKoMNGAn9w4rnAaSWAdR 2WM3janB2Cbj4fApOfVT2e4z1Aid85YRueEf7RNBmRO85UEJAzsf2sk3E+vY6znMXzUDWd Qh/LKCG2zNRcgJu3fEDWyYYxRTKAiSxKTRUR788ucjhjiiNrE7sEDfFrCkipncDvIEySZE oPnKWPrUCnpCEcJV6L3f34LjZpf7pBY61FX7NDQ6ai5QCDGuaAFw6IBwdK0+ikMyauwKbE 4U1rU4NvNfZZuV1OpKJF3O3yn5Ggu1X5eANGnPVAHpDIMtT06Qm4wCyTKUL/KQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=QUdTsLB5; dmarc=pass (policy=none) header.from=pobox.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685285264; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=W1vEgyz1oLFEkRYtXe3g/1aCXqoStV/E1Zg7Ve7OBd8=; b=TIYrApa/Z+JtDRJ1zFEkmmD61Td/V7/G7XLWgLXSWQ30FDCQUjmnyCfVAJ+jztOfeleT9c /a4AGAGoQxEvvOQ0AR5hlQgzO+iJd2cGlAeWnv+6jIWgNBJZhlUD427ZZnYbk4jxNYVUNK WY4/vcXZIELys1k6UOuKYNxtye6Q/05I7DVyva70NOAxwfg9svZsXg2Ni/vxKLL/0btECu GAoJb7mt4rFhFXM0YGpRia3QIwjBmBos/q2btdw6AhLaPt7tZjFO0PfDtjFjLTc9PWdoMI Nb+pRumCzPVzfEb3TYrpjUdr179W70rLAooeQ/8BM3Me1Hr+F36QBD5O0R6/Ww== X-Migadu-Spam-Score: -7.91 X-Spam-Score: -7.91 X-Migadu-Queue-Id: D37673DE91 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=QUdTsLB5; dmarc=pass (policy=none) header.from=pobox.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: 8couKViellA2 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1741096510-2107514434-1685285205=:89343 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm thinking about moving a personal library catalogue system into Org. = This=20 would involve ISBNs, and when ISBNs had 10 digits some would have leading= zeros.=20 It turns out leading zeros are removed when something looks like a number= . #+name:isbn | 0006145396 | #+begin_src shell :results output :var string=3Disbn echo $string #+end_src #+RESULTS: : 6145396 I looked at org-babel-read, which calls org-babel--string-to-number ("If = STRING=20 represents a number return its value"), so it looks like that's always go= ing to=20 happen. I could use a hack like prepending an X and then removing it later, but t= hat's a=20 bit ugly. Has anyone had this problem and worked around it some other wa= y? Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada CO=E2=82=82: 424.57 ppm (Mauna Loa Observatory, 2023-05-27) --1741096510-2107514434-1685285205=:89343--