From unknown Mon Sep 08 01:48:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8806 <8806@debbugs.gnu.org> To: bug#8806 <8806@debbugs.gnu.org> Subject: Status: 24.0.50; format function broken for zero-padded hex chars Reply-To: bug#8806 <8806@debbugs.gnu.org> Date: Mon, 08 Sep 2025 08:48:00 +0000 retitle 8806 24.0.50; format function broken for zero-padded hex chars reassign 8806 emacs submitter 8806 Steve Purcell severity 8806 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 05 15:35:20 2011 Received: (at submit) by debbugs.gnu.org; 5 Jun 2011 19:35:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTJ6V-0005zB-M7 for submit@debbugs.gnu.org; Sun, 05 Jun 2011 15:35:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTJ6T-0005yz-1y for submit@debbugs.gnu.org; Sun, 05 Jun 2011 15:35:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTJ6M-0007tp-Gx for submit@debbugs.gnu.org; Sun, 05 Jun 2011 15:35:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTJ6M-0007tj-B0 for submit@debbugs.gnu.org; Sun, 05 Jun 2011 15:35:10 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTJ6K-0002tz-Ga for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTJ6I-0007tK-KI for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:35:08 -0400 Received: from h1189701.stratoserver.net ([85.214.32.38]:41037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTJ6I-0007rH-92 for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:35:06 -0400 Received: from mandala.home (host81-155-75-206.range81-155.btcentralplus.com [81.155.75.206]) by h1189701.stratoserver.net (Postfix) with ESMTPA id 19560ACC0A9 for ; Sun, 5 Jun 2011 21:34:50 +0200 (CEST) From: Steve Purcell Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 24.0.50; format function broken for zero-padded hex chars Date: Sun, 5 Jun 2011 20:34:50 +0100 Message-Id: To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) Evaluate the following expression: (format "%06x" 176) Expected result: "0000b0" Actual result: " b0" This breaks some Slime backends, since swank packet lengths are encoded into network messages using this method. Some inputs appear to work fine, e.g. (format "%06x" 95) =3D> "00005f" I'm using a snapshot build from emacsformacosx.com, and it's 2 or 3 days old. In GNU Emacs 24.0.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-06-03 on black.porkrind.org Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--host=3Dx86_64-apple-darwin' = '--build=3Di686-apple-darwin' '--with-ns' = 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' = 'CC=3Dgcc -mmacosx-version-min=3D10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: utf-8 default enable-multibyte-characters: t Major mode: Clojure Minor modes in effect: shell-dirtrack-mode: t goto-address-prog-mode: t paredit-mode: t slime-mode: t diff-auto-refine-mode: t global-fuzzy-format-mode: t cua-mode: t global-pointback-mode: t pointback-mode: t global-undo-tree-mode: t undo-tree-mode: t desktop-save-mode: t recentf-mode: t global-smart-tab-mode: t smart-tab-mode: t global-auto-complete-mode: t auto-complete-mode: t hl-sexp-mode: t ido-everywhere: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t unify-8859-on-decoding-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow sort mail-extr emacsbug descr-text arc-mode archive-mode executable shell vc network-stream starttls tramp tramp-compat tramp-loaddefs help-mode multi-isearch jka-compr mmm-mode mmm-univ mmm-class mmm-region mmm-utils org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-fstree org-checklist org-clock org-exp ob-exp org-exp-blocks org-agenda org-mac-iCal org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete org-list org-faces org-compat org-entities org-macs vc-dispatcher flymake-js moz flymake eldoc vc-darcs goto-addr paredit project-local-variables clojure-test-mode durendal ac-slime hippie-expand-slime slime-repl slime-fuzzy slime apropos hideshow pp clojure-mode init-locales init-edit-server edit-server init-misc init-twitter twit url-http tls url-auth url-gw init-mail init-common-lisp init-clojure init-slime init-lisp etags init-rails rinari jump inflections findr ruby-compilation which-func ansi-color inf-ruby init-ruby-mode flymake-ruby init-ocaml init-haskell init-python-mode flymake-python init-haml flymake-haml init-css init-nxml nxml-enc init-htmlize init-org init-php init-sh init-javascript js-comint init-erlang init-csv init-markdown init-textile init-crontab init-gnuplot init-git diff-git magithub crm rebase-mode rx magit-svn magit server pcomplete ediff iswitchb view diff-mode log-edit pcvs-util magit-bisect magit-key-mode vc-git init-darcs darcsum gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig nnir gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message rfc822 mml mml-sec mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader mm-decode mm-bodies mm-encode mail-parse rfc2231 add-log init-svn init-editing-utils fuzzy-format whole-line-or-region eol-conversion cua-base pointback undo-tree init-growl init-mmm mmm-auto mmm-vars mmm-compat init-themes color-theme-sanityinc-solarized cus-edit cus-start cus-load color-theme-autoloads init-fonts init-sessions session desktop init-windows winner init-auto-complete init-hippie-expand init-ido init-recentf recentf tree-widget init-regex-tool init-flymake init-ibuffer ibuffer-vc ibuf-macs ibuf-ext ibuffer init-uniquify uniquify init-iedit init-isearch init-viper init-dired dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux init-proxies init-gui-frames init-maxframe maxframe init-osx-keys init-title-bar init-xterm init-frame-hooks init-utils find-func init-el-get erc-autoloads fringe-helper-autoloads highlight-symbol-autoloads json-autoloads lua-mode-autoloads project-local-variables-autoloads sass-mode-autoloads haml-mode-autoloads slime-fuzzy-autoloads slime-repl-autoloads slime-autoloads yaml-mode-autoloads lua-mode markdown-mode noutline outline rainbow-mode erlang-start coffee-mode org-google-weather solar cal-dst cal-menu calendar cal-loaddefs format-spec google-weather xml url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source eieio assoc gnus-util time-date password-cache url-vars mailcap quack compile cmuscheme comint ring scheme elein git-blame sass-mode haml-mode derived js json imenu newcomment cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs css-mode ruby-mode whattf-dt html5-langs color-theme wid-edit sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils reporter smart-tab auto-complete-config auto-complete popup flymake-point iedit edmacro kmacro help-macro fringe-helper todochiku growl smooth-scrolling byte-opt warnings paren mic-paren highlight-symbol hi-lock hl-sexp thingatpt autopair advice advice-preload easy-mmode diminish info easymenu revive smex ido el-get autoload help-fns bytecomp byte-compile cconv macroexp package tabulated-list dired regexp-opt init-elpa init-exec-path cl tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 05 16:02:50 2011 Received: (at 8806) by debbugs.gnu.org; 5 Jun 2011 20:02:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTJX7-0006Zy-UU for submit@debbugs.gnu.org; Sun, 05 Jun 2011 16:02:50 -0400 Received: from h1189701.stratoserver.net ([85.214.32.38]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTJX5-0006Zk-CN for 8806@debbugs.gnu.org; Sun, 05 Jun 2011 16:02:49 -0400 Received: from mandala.home (host81-155-75-206.range81-155.btcentralplus.com [81.155.75.206]) by h1189701.stratoserver.net (Postfix) with ESMTPA id 22A44ACC0A9; Sun, 5 Jun 2011 22:02:39 +0200 (CEST) From: Steve Purcell Content-Type: multipart/alternative; boundary=Apple-Mail-2-431960771 Subject: Re: 24.0.50; format function broken for zero-padded hex chars Date: Sun, 5 Jun 2011 21:02:38 +0100 Message-Id: To: 8806@debbugs.gnu.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 8806 Cc: eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) --Apple-Mail-2-431960771 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Presumably this error relates to this revision: http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/104297.1.4 I'm taking the liberty of CCing the author. -Steve --Apple-Mail-2-431960771 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Presumably this error relates to this revision:


I'm taking the liberty of CCing the author.

-Steve
--Apple-Mail-2-431960771-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 05 18:49:00 2011 Received: (at 8806-done) by debbugs.gnu.org; 5 Jun 2011 22:49:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTM7v-0001oQ-VP for submit@debbugs.gnu.org; Sun, 05 Jun 2011 18:49:00 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTM7t-0001oB-7q for 8806-done@debbugs.gnu.org; Sun, 05 Jun 2011 18:48:57 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id D7E7B188B596; Mon, 6 Jun 2011 00:48:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 52B281C000BA; Mon, 6 Jun 2011 00:48:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id PE-QqJwz+G9b; Mon, 6 Jun 2011 00:48:51 +0200 (CEST) Received: from igel.home (ppp-88-217-123-215.dynamic.mnet-online.de [88.217.123.215]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 6 Jun 2011 00:48:50 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 8A67BCA29C; Mon, 6 Jun 2011 00:48:50 +0200 (CEST) From: Andreas Schwab To: Steve Purcell Subject: Re: bug#8806: 24.0.50; format function broken for zero-padded hex chars References: X-Yow: Is it FUN to be a MIDGET? Date: Mon, 06 Jun 2011 00:48:50 +0200 In-Reply-To: (Steve Purcell's message of "Sun, 5 Jun 2011 20:34:50 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8806-done Cc: 8806-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Fixed. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Mon Sep 08 01:48:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 04 Jul 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator