Subject: UTF-8 outside BMP support
To: None <tech-userlevel@NetBSD.ORG>
From: Takehiko NOZAKI <sigsegv@s25.xrea.com>
List: tech-userlevel
Date: 09/26/2004 02:58:31
--Multipart_Sun_Sep_26_02:58:31_2004-1
Content-Type: text/plain; charset=US-ASCII

Hello, all.

Resent FreeBSD UTF-8 locale supports outside BMP.
why not merge it?

P.S
this patch includes isw* function enhancement,
currently
	src/lib/libc/locale/___runetype_mb.c
	src/lib/libc/locale/_wctrance.c
are using linear search algorythem, this changes binary search
for huge locale table such as UCS, GB18030.
this fix derived from FreeBSD too.


--Multipart_Sun_Sep_26_02:58:31_2004-1
Content-Type: application/octet-stream; type=gzip
Content-Disposition: attachment; filename="utf8_outside_bmp.patch.gz"
Content-Transfer-Encoding: base64

H4sICJ6YVUEAA1VURjhvdXRzaWRlQk1QLnBhdGNoAM1Y/3PaOBb/Gf4K7exOJxQI/m5DmkwpIS17
aZJJwrYzNzeMseXEu2AYY1Jyt/3f70mWhCWbJEtutsduY/k96aPP+6L3bI+SEG96aDKZpOsEZ49L
PJlPD4P68et/9evBDYriGe6hzv1ijjvBw6pzgbMPN6edVRp0ZvGU/IPBIvBnuKNyaD3UU5ylMX6I
kzuUwmUVLxKkH3brYRxFqL1G7RTuyuTb7XZJWHNRf32HDE0zke70LLMHg7YGvxpBbDab5SW6iX5d
z8gaC+lWz7Z6hpOvqb9/j9qW3TJM1CSXLnr/vq4AHASNOqp9i5NskqHgqI7+U2/WJpNkSuYQkQay
2hr0pgG3m6N6uza5Bt21n9xh9DZN0TF6Mxms0xQnGVGcU0e1T9LZdh+8ycTCYZKlj7AQw8I0hXkp
nTdJCeDqiGwv4QsJWzj1V7hF1gMxoBZH6CBAx8foy/DyrAGb1CAe6zQ50MYNspTdovwewYRokaKD
DeyuHaENesdJJIwAajY3LfiT4gY4A/A6b9HXr1+Rv1qt53iFvgX3fgquOEbgFPS2Q6YQEgdbrzUC
Akt8AC6OE8pKolW95Fis8TcNGohAg22kWUdIpZOHTrB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QrFC8SLk8UFVWSohFAvUC8qSw5PT9uwSli+weEGwQx4V
G7OoOJpoq0YpKo4pzgPPXEdkrsNTQ+nMCgQW5423YVcXR0p0WnF2aVuVIdyuOCy+pz5y7tMTFYTX
9EQF6jU9UYbaqycqEPv0RAXiVT1RxlJ6ovzYv08YFYTXhFGBek0YZai9wqhA7BNGBeJVYZSxlDBK
r16Gxt/ojb5zSl69Br/+A42TOIqh3oxCvLhL/eX9Cg03GU7oJ9APla/2HAhGvhM6ciqVlKPT4SWs
/lypzNkb1Stl9mceZ3/W1zn7wWK+hFfHaTyLs8eiDTfr5XKG5zjJqk2IPL5X5OvKq3JJKZmgKiUT
VKVkwlAEAEYuMeHWv6v+JIFhps4G7OsdjFw1pGcC8Yz8AHFrt58+oqs0fvAzjMYrjPop9tv9Sm9E
wvNR/gVU+mqqKqUPp6pS+Ygn+OnaywhWZ5wAIsMyxQq1/E1NVf8X9I2y3VEmAAA=

--Multipart_Sun_Sep_26_02:58:31_2004-1
Content-Type: text/plain; charset=US-ASCII


very truly yours.
--
Takehiko NOZAKI <tnozaki@NetBSD.ORG>

--Multipart_Sun_Sep_26_02:58:31_2004-1--