asaini / cconv

Automatically exported from code.google.com/p/cconv
GNU General Public License v2.0
0 stars 0 forks source link

如果 inputfile 不存在 #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
如果使用不存在的文件当做 inputfile 参数,导致 cconv 死锁。

Original issue reported on code.google.com by s5u...@gmail.com on 13 May 2009 at 2:53

GoogleCodeExporter commented 9 years ago
如果确实需要指定文件的话,可以使用-i参数
$ ./cconv -f utf-8 -t utf8-hk -i no_such_file
   no_such_file No such file or directory

如果没有指定-i参数的话,文件没有打开时,就以标准输出作
为input的:
$ ./cconv -f utf-8 -t utf8-hk  no_such_file
中国
中國

写程序的过程中我偷了一点懒,下个版本改进一下。

Original comment by xiao...@gmail.com on 13 May 2009 at 3:10

GoogleCodeExporter commented 9 years ago
如果没有指定-i参数的话,文件没有打开时,就以标准输入作
为input的:

是标准输入,写错了。

Original comment by xiao...@gmail.com on 13 May 2009 at 3:11

GoogleCodeExporter commented 9 years ago

Original comment by xiao...@gmail.com on 23 Feb 2010 at 3:53