OpenCC icon indicating copy to clipboard operation
OpenCC copied to clipboard

Does not work under macos(m2)

Open udyk-dev opened this issue 1 year ago • 4 comments

how to reproduce: 1, arch -arm64 brew install opencc 2, opencc -i test.txt -o out.txt 3, cat out.txt output :

千家詩卷一

五言絕句

春眠    孟浩然
春眠不覺曉    處處聞啼鳥    夜來風雨聲    花落知多少

the testcase of out.txt:

千家詩卷一

五言絕句

春眠    孟浩然
春眠不覺曉    處處聞啼鳥    夜來風雨聲    花落知多少

udyk-dev avatar Dec 20 '24 11:12 udyk-dev

Does opencc -i test.txt -o out.txt -c t2s.json work?

c856450 avatar Dec 24 '24 23:12 c856450

opencc always ignore the -o flag in my case, it directly prints to the console

pot-code avatar Oct 19 '25 03:10 pot-code

opencc always ignore the -o flag in my case, it directly prints to the console

On macOS? I am using version opencc 1.1.9 which was installed with brew, without any problem of the option -o. However, I have to use the option -c t2s.json, otherwise it does not convert like udyk-dev described above.

c856450 avatar Oct 19 '25 16:10 c856450

opencc always ignore the -o flag in my case, it directly prints to the console

On macOS? I am using version opencc 1.1.9 which was installed with brew, without any problem of the option -o. However, I have to use the option -c t2s.json, otherwise it does not convert like udyk-dev described above.

i have tried but it doesn't work. i ended up using python SDK

pot-code avatar Oct 20 '25 00:10 pot-code