From owner-freebsd-i18n@FreeBSD.ORG Fri Apr 5 14:04:03 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 3CAA71E2 for ; Fri, 5 Apr 2013 14:04:03 +0000 (UTC) (envelope-from cedric.blancher@gmail.com) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id 16B28878 for ; Fri, 5 Apr 2013 14:04:03 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id a11so4403323iee.11 for ; Fri, 05 Apr 2013 07:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=rHkecXT+t+AqBy9iAVFfIfWuTi8OIf74bDVdZiwnT3o=; b=fPsQF+siXK5Jz+K8v/SYVoqR104O0qioVe8ayuFZTcWi9R1VX7e96vbAo2YvEijmvo +9/kJDqOXprYFYGjRRoyhFqqcd5xBmFNKusHcrZSozYezOLtwBWHPG9id8vrTiD1hjiX mSPRkJeZb4r8yjj/lpPAyQw6LiJJE9dEfm2dZP2K3+qDJ5ckvg7bnc01+Tdl+PP0ygHh fRkln0CZ/hXu1cvqnQV1CI8NOFyMn6i/7SZg5y+UZi5vrQnnossSlOQlwc93Ji2dJzGc VeJJHgpeLz8WmOLgHZZuLuS6rk3V3F689SSsCw1l6tvL8kYCctqgkoKYvlQir07OPJmt sJ8g== MIME-Version: 1.0 X-Received: by 10.50.17.166 with SMTP id p6mr1687290igd.12.1365170642780; Fri, 05 Apr 2013 07:04:02 -0700 (PDT) Sender: cedric.blancher@gmail.com Received: by 10.50.40.36 with HTTP; Fri, 5 Apr 2013 07:04:02 -0700 (PDT) Date: Fri, 5 Apr 2013 16:04:02 +0200 X-Google-Sender-Auth: hBv8PGts2Hv9ciBf3QuYegssXDg Message-ID: Subject: 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 14:04:03 -0000 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... Ced -- Cedric Blancher Institute Pasteur