From mboxrd@z Thu Jan 1 00:00:00 1970 From: arisawa Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <76A0A13C-0D91-4620-A282-A581C206A9FA@ar.aichi-u.ac.jp> Date: Sun, 30 Mar 2014 08:31:14 +0900 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: [9fans] a strange bug in grep Topicbox-Message-UUID: d29e3ece-ead8-11e9-9d60-3106f5b1d025 Hello, I found a strange bug in grep. some Japanese runes does not match =E2=80=98[^0-9]=E2=80=99. for example =E2=80=98=E3=81=BE' (307e) and =E2=80=98=E3=81=BF=E2=80=99(307= f). unicode table from 3040 to 3090 is=20 3040 =E3=81=80 3041 =E3=81=81 3042 =E3=81=82 3043 =E3=81=83 3044 =E3=81= =84 3045 =E3=81=85 3046 =E3=81=86 3047 =E3=81=87 3048 =E3=81=88 3049 =E3=81=89 304a =E3=81=8A 304b =E3=81=8B 304c =E3=81= =8C 304d =E3=81=8D 304e =E3=81=8E 304f =E3=81=8F 3050 =E3=81=90 3051 =E3=81=91 3052 =E3=81=92 3053 =E3=81=93 3054 =E3=81= =94 3055 =E3=81=95 3056 =E3=81=96 3057 =E3=81=97 3058 =E3=81=98 3059 =E3=81=99 305a =E3=81=9A 305b =E3=81=9B 305c =E3=81= =9C 305d =E3=81=9D 305e =E3=81=9E 305f =E3=81=9F 3060 =E3=81=A0 3061 =E3=81=A1 3062 =E3=81=A2 3063 =E3=81=A3 3064 =E3=81= =A4 3065 =E3=81=A5 3066 =E3=81=A6 3067 =E3=81=A7 3068 =E3=81=A8 3069 =E3=81=A9 306a =E3=81=AA 306b =E3=81=AB 306c =E3=81= =AC 306d =E3=81=AD 306e =E3=81=AE 306f =E3=81=AF 3070 =E3=81=B0 3071 =E3=81=B1 3072 =E3=81=B2 3073 =E3=81=B3 3074 =E3=81= =B4 3075 =E3=81=B5 3076 =E3=81=B6 3077 =E3=81=B7 3078 =E3=81=B8 3079 =E3=81=B9 307a =E3=81=BA 307b =E3=81=BB 307c =E3=81= =BC 307d =E3=81=BD 307e =E3=81=BE 307f =E3=81=BF 3080 =E3=82=80 3081 =E3=82=81 3082 =E3=82=82 3083 =E3=82=83 3084 =E3=82= =84 3085 =E3=82=85 3086 =E3=82=86 3087 =E3=82=87 3088 =E3=82=88 3089 =E3=82=89 308a =E3=82=8A 308b =E3=82=8B 308c =E3=82= =8C 308d =E3=82=8D 308e =E3=82=8E 308f =E3=82=8F 3090 =E3=82=90 I tried some of them. term% cat t3 =E3=81=82 =E3=81=AF =E3=81=B0 =E3=81=B1 =E3=81=B2 =E3=81=B3 =E3=81=B4 =E3=81=B5 =E3=81=B6 =E3=81=B7 =E3=81=B8 =E3=81=B9 =E3=81=BA =E3=81=BB =E3=81=BC =E3=81=BD =E3=81=BE =E3=81=BF =E3=82=80 =E3=82=81 =E3=82=82 term% grep -v '[^0-9]' t3 =E3=81=BE =E3=81=BF term%=20 Kenji Arisawa