Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fclose (stdout): No child processes lt-enca: librecode probably damaged `STDIN'. No way to recover in a pipe. #29

Closed
seb321 opened this issue Mar 31, 2018 · 1 comment

Comments

@seb321
Copy link

seb321 commented Mar 31, 2018

When enca is given an input through stdin it gives correct results but reports errors and exits with error code 2. It happens in version built from master and also in stable.

$ cat text.txt| ./enca -VVVVVVVVVVVVVVV -x utf8 -L polish
Opening file `/usr/share/locale/locale.alias' in mode r
stat()-ing `/usr/share/locale/locale.alias' (fd 3) for its size
File `/usr/share/locale/locale.alias' size is 2997
Closing file `/usr/share/locale/locale.alias'
Explicitly specified target charset: utf8
Adding converter `built-in'
Adding converter `librecode'
Initializing language pl
Fake-opening stdin/stdout in mode r+b
lt-enca: converting `STDIN': CP1250..UTF-8
    trying to convert `STDIN' using built-in
    trying to convert `STDIN' using librecode
Dziękujemy ← It is correctly converted
fclose (stdout): No child processes
lt-enca: librecode probably damaged `STDIN'. No way to recover in a pipe.
$ echo $?
2

I think that it can be related to #28

text.txt

@seb321
Copy link
Author

seb321 commented Dec 26, 2019

Seems to be resolved by recode rrthomas/recode#4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant