FreeBSD Bugzilla – Attachment 184342 Details for
Bug 219132
[NEW PORT] textproc/scws Simple Chinese word segmentation program and lib
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test.sh
test (2).sh (text/plain), 742 bytes, created by
Jov
on 2017-07-14 10:48:11 UTC
(
hide
)
Description:
test.sh
Filename:
MIME Type:
Creator:
Jov
Created:
2017-07-14 10:48:11 UTC
Size:
742 bytes
patch
obsolete
>if /usr/bin/locale | grep 'zh_CN.UTF-8' > /dev/null >then > echo "env ok" >else > echo "set env first. For bash, run: export LANG=zh_CN.UTF-8 For csh run: setenv LANG zh_CN.UTF-8" > exit >fi > >cat > test.c << EOF >#include <scws.h> >#include <stdio.h> >main() >{ > scws_t s; > s = scws_new(); > scws_free(s); > printf("test ok!\n"); >} >EOF > >cc -o test -I/usr/local/include/scws -L/usr/local/lib test.c -lscws -Wl,--rpath -Wl,/usr/local/lib > /dev/null 2>&1 >echo "test the lib: " >./test > >fetch http://www.xunsearch.com/scws/down/scws-dict-chs-utf8.tar.bz2 >tar xvjf scws-dict-chs-utf8.tar.bz2 > >echo "test the scws cmd: " >scws -i "FreeBSDæ¯ä¸ä¸ªä¼å¤§çæä½ç³»ç»" -c utf8 -A -r /usr/local/etc/scws/rules.utf8.ini -d ./dict.utf8.xdb || echo "test failed!"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 219132
:
182388
|
184341
| 184342