You are not logged in.

#1 2018-03-12 05:48:29

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

enconv fails with "enconv: Cannot seek in file : Bad file descriptor"

I've been using enconv to convert subtitles from chinese encoding to UTF8. It used to work perfectly.
Now it always fails with the following :

>$ enca -L zh twin.peaks.s02e17.1080p.bluray.x264-reward.chs.srt 
Simplified Chinese National Standard; GB2312
  CRLF line terminators
>$ enconv -L zh -x UTF8 twin.peaks.s02e17.1080p.bluray.x264-reward.chs.srt 
enconv: Cannot seek in file `/tmp/encaJqirv6': Bad file descriptor
failed to rename temporary file back
>$ ls /tmp/
ompi.violet.1000  serverauth.wCtKrOO4mv  tmp.Vt74BtXPf1  tmp.Z7Ei03ozve

iconv has no problem and is able to convert the file (but is not as practical to use)

>$ iconv -f GB2312 -t UTF8 < twin.peaks.s02e17.1080p.bluray.x264-reward.chs.srt > a.srt

I've uploaded a file to convert if anyone wants to try it. https://ufile.io/5eati

Last edited by GloW_on_dub (2018-03-12 05:49:23)

Offline

Board footer

Powered by FluxBB