Summary: | segfault in txtwrite_process_plain_text() | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | jwilk |
Component: | Text | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | reproducer |
Description
jwilk
2018-05-30 09:23:37 UTC
Fixed in commit 71de6d0f9c2a48d6e4a69287b2123bf9efd6df88 Forgot to point out; the txtwrite device doesn't support writing to stdout, so you will get an 'unknownerror in --showpage--' with that command line. Thanks! I confirm that 71de6d0f9c2a48d6e4a69287b2123bf9efd6df88 fixes it for me. > the txtwrite device doesn't support writing to stdout Oh? I took this command line from ps2ascii, so I think it's supposed to work. > you will get an 'unknownerror in --showpage--' with that command line. I don't get such error. (In reply to Jakub Wilk from comment #3) > Thanks! > I confirm that 71de6d0f9c2a48d6e4a69287b2123bf9efd6df88 fixes it for me. > > > the txtwrite device doesn't support writing to stdout > > Oh? I took this command line from ps2ascii, so I think it's supposed to work. ps2ascii is a PostScript program, txtwrite is a Ghostscript device, the two are totally different, you can't infer the behaviour of one from the other (for example, txtwrite outputs YTF8 or Unicode, ps2ascii outputs ASCII, sort of) > > you will get an 'unknownerror in --showpage--' with that command line. > > I don't get such error. Interesting, I do..... Since 2fa6beaa40144c592661a611bf35ff6f06d3354f, ps2ascii is implemented using txtwrite. (You may find name of the author of this commit familiar. :-P) (In reply to Jakub Wilk from comment #5) > Since 2fa6beaa40144c592661a611bf35ff6f06d3354f, ps2ascii is implemented > using txtwrite. > (You may find name of the author of this commit familiar. :-P) I assumed you meant the *old* ps2ascii, the only reason I updated the script is to stop people using the old version and try to encourage adoption of the new code. I made no attempt to discover if the scripts worked in all their possible configurations. |