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

[tx] stdin input not fully functional #937

Open
miguelsousa opened this issue Aug 27, 2019 · 1 comment
Open

[tx] stdin input not fully functional #937

miguelsousa opened this issue Aug 27, 2019 · 1 comment

Comments

@miguelsousa
Copy link
Member

This works

$ tx < tx_data/input/svg.svg
## Filename stdin
## Top Dict
FullName            "SourceSansPro-Regular"
sup.nGlyphs         5
## FontDict[0]
FontName            "SourceSansPro-Regular"
## Private
## glyph[tag] {name,encoding}
glyph[1] {.notdef,-}
glyph[2] {a,U+0061}
glyph[3] {gid00002,U+0020}
glyph[4] {gid00003,U+E000}
glyph[5] {gid00004,U+E001}

but this does not

$ cat tx_data/input/svg.svg | tx
tx: --- stdin
tx: (sfr) can't read source stream
tx: fatal error
@anthrotype
Copy link
Member

I suspect it might be because somewere tx is attempting to call seek on the input stream but this is unseekable.
If it needs to seek, then it should load everything from stdin to memory and work from there.

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

No branches or pull requests

2 participants