#142 djvm cannot create a "-" file

djvulibre
open
nobody
utilities (27)
5
2012-11-08
2009-04-19
Jakub Wilk
No

It seems that djvm considers a filename ending with "/-" as a name for stdout and then fails miserably. Thus, it is not possible to create a file with name consisting of just a minus character:

$ djvm -c "$PWD/-" dummy.djvu
♦v8cd>terminate called after throwing an instance of 'DJVU::GException'
Aborted

Discussion

  • Leon Bottou
    Leon Bottou
    2010-07-04

    That's true, and this is completely messed up inside.
    I am crying whenever I see this code.
    Next major release..