[Github-comments] [geany] Read standard input as new file (#780)
elextr
notifications at xxxxx
Sat Nov 28 02:29:31 UTC 2015
> If GOptionParser chokes on a single - (does it? I figured it would just pass it through), some code could be added to detect/remove - from argv before calling into the option parser, instead of dealing with it after the option parser.
Ahhh, I was looking at the `g_option` API that won't let you specify a `-` by itself as an option, but you are right it passes it through, and geany opens a new file called `-`, and `--` also passes through too even though it is documented as "stop parsing options", so it needs filtering as well.
> Good point, it would probably need to detect, and convert from the terminal encoding, which may not be UTF-8.
The problem is that the output of the command may not be in terminal encoding either, it has to be selectable manually `--encoding=xxx` maybe, but that is of course more effort for the "somebody" implementing this capability.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/780#issuecomment-160241771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151127/1de4f3f1/attachment.html>
More information about the Github-comments
mailing list