From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80831 invoked by alias); 4 Apr 2016 22:59:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 80712 invoked by uid 89); 4 Apr 2016 22:59:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=extractor, late X-HELO: mail-qg0-f48.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=uHyYKmFzloiNXTmyansSN8TTCC7suv9ZFAr1NodCYjM=; b=j5lPeGj4NJkZOQaUo+JbXpOwIIqVxK+toh6QjBOxeqyVfLr9WQ6dFRgPs6BYVSEG9Q zJtCkTRi830Ym29n++hn5vwBwJvUQlVaisAI10/ywhKEqjR+ixDOJ5uJp+pPquJNhQ+o +59kdl0YGa0Xpozk3VmQpoHXcUzQMEFqS7KKr8doUmR3CbkJ7REphiUTMNjUvv14KY/d JF130Bit6QsrMkFqDttVh8bJJkwSq/hozDT7DMj2WjOIzdlGm0pT0Vtv5TmvabI2/DX6 ma+plpQEfAaO/+5NP+eieNAT5b5Cmt9TxjtNXXxSr909mdT6eV8U1RMEovSsF406bkum ZjNg== X-Gm-Message-State: AD7BkJIShLagSR377sywNl6phX+rQus8QJIz63z7nEvgtqYTj/4OZtoioEcqzSE4THauFQ== X-Received: by 10.140.166.6 with SMTP id m6mr27092550qhm.70.1459810792311; Mon, 04 Apr 2016 15:59:52 -0700 (PDT) Subject: Re: [PATCH] Add Roman numerals in *printf To: Matteo Croce , libc-alpha@sourceware.org References: <1459503215-21039-1-git-send-email-matteo@openwrt.org> From: Martin Sebor Message-ID: <5702F1E6.60000@gmail.com> Date: Mon, 04 Apr 2016 22:59:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1459503215-21039-1-git-send-email-matteo@openwrt.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-04/txt/msg00067.txt.bz2 > This patch adds the `%r' modifier in all the *printf functions, > which can be used to represent a number in Roman numerals. A bit late to the April 1 party, but a C++ Standard Library implementation I worked on years ago actually has this feature. It makes it possible to use the usual C++ iostream inserter and extractor operators to format and parse not only Roman numerals (that was done mostly just to give base 1 a meaning), but more usefully numbers in any base between 1 and 36. The implementation still ships with a number of compilers, though I think only one (Compaq/HP CC for Tru64) has the version with the Roman numerals. Martin