<p>Hello,</p>

<p>Well,<br>
cat /dev/urandom | nano -<br>
simply waits forever for stdin to run out which never does, but provides a message to send CTRL+C to cancel.</p>

<p>You are right, some strategy to handle encoding would make sense. For typical commands on linux it's a non-issue, but I can see the need, you can have unicode/intl. characters in filenames (of 'ls' output above) for example... but on my system "ls -l" can output unicode and nano outputs unicode, so... I don't remember how terminals and bash handle it.</p>

<p>I would expect to have to do the conversions myself. After the file opens, if geany can't heuristically tell the encoding from contents like other files (does it do that? I always work on the same kinds of files), I would simply select the encoding myself from the menu ("Set Encoding"), since the point is to have a GUI. I suppose a command line option to override which "Set Encoding" is selected when the file opens could be useful. But that could be a separate suggestion entirely...</p>

<p>Indeed I already tried "geany -" and it opens a file named dash.</p>

<p><a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> I could probably make use of that script. The part I didn't think of is using a random filename. That would work.</p>

<p>Thanks for responding</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/780#issuecomment-160244693">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8o_769YOXSkEwoTWp12Hbo5ljjLks5pKR3KgaJpZM4GqokY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/780#issuecomment-160244693"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>