From owner-freebsd-i18n@FreeBSD.ORG Fri Apr 5 22:10:24 2013 Return-Path: Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D4CA3F16 for ; Fri, 5 Apr 2013 22:10:24 +0000 (UTC) (envelope-from cedric.blancher@gmail.com) Received: from mail-ia0-x22d.google.com (mail-ia0-x22d.google.com [IPv6:2607:f8b0:4001:c02::22d]) by mx1.freebsd.org (Postfix) with ESMTP id AC81AFB9 for ; Fri, 5 Apr 2013 22:10:24 +0000 (UTC) Received: by mail-ia0-f173.google.com with SMTP id h37so3608841iak.18 for ; Fri, 05 Apr 2013 15:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=tQf9lJHKVbzn0F5iBZSynwMEu35rk1k6/cuyzfZj1+k=; b=LRD/CAkulrJVuefu1lm5pve8MOOwkqcHNIPZqo3K1l0OVQJe3xjxs1tp1M9tQTmHFt dwwLnuhCvJ9jw/4mb8J/FowxQrbk6nPSCxrETptZ91wwtqXWsvqJUx0bzpyxVETjxJB2 8ogDPDKNRPDfv/jr7Vgx9Sbp0Bw0kOp3mAdsZLKnXhl1C2cyhYW2See7w/DEM7w73e7f Td/toY33KkK5Jjfoq5+qDfJ4MPzICTICB6x4QIDKAtoAVLLfqykfJaeLfyE37ekNeIQt sES/WyZ/velIrMTP4FFQrOgh1y9yIFBAQrCObcc439b/CM2WUMtamtx38KA27NjiY2ia +k/w== MIME-Version: 1.0 X-Received: by 10.50.17.166 with SMTP id p6mr670400igd.12.1365199824437; Fri, 05 Apr 2013 15:10:24 -0700 (PDT) Sender: cedric.blancher@gmail.com Received: by 10.50.40.36 with HTTP; Fri, 5 Apr 2013 15:10:24 -0700 (PDT) In-Reply-To: References: Date: Sat, 6 Apr 2013 00:10:24 +0200 X-Google-Sender-Auth: _-b_pkXBgto2nQjzpukp5mELrks Message-ID: Subject: Re: Where does FreeBSD tr -C differ from tr -c? From: Cedric Blancher To: freebsd-i18n@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2013 22:10:24 -0000 On 5 April 2013 16:04, Cedric Blancher wrote: > Has anyone discovered examples for FreeBSD tr -c producing different > output than tr -C? > I tried this (ksh93) test script but it NEVER produces a difference in > the en_US.utf8 and fr_FR.utf-8 locales: > > ------ snip ------ > builtin rm > > typeset string > typeset -li16 n_ch ; > > for (( n_ch=1 ; n_ch < 0x5000 ; n_ch++ )) ; do > ch="$(printf "\u[${n_ch/~(El)16#/}]")" > string+="$ch" > done > > typeset -li16 m1 m2 > for (( m1=0x32 ; m1 < 0x3000 ; m1+=7 )) ; do > (( m2=m1+1500 )) > range="$(printf "\u[${m1/~(El)16#/}]-\u[${m2/~(El)16#/}]")" > > tr -Cd "$range" <<<"$string" >'res_C' & > tr -cd "$range" <<<"$string" >'res_c' & > wait > res_c="$( <'res_c' )" > res_C="$( <'res_C' )" > rm 'res_c' 'res_C' > > if [[ "$res_c" != "$res_C" ]] ; then > printf 'DIFFER range=%q\n' "${range}" > fi > done > exit 0 > ------ snip ------ > > So when does tr -C differ from tr -c? I need examples, please... Anyone? FreeBSD tr implements option -C but there are no usage *examples* where exactly it differs from -c. Ced -- Cedric Blancher Institute Pasteur