2015-12-15 21:34 GMT+05:00 Enrico Tröger <notifications@github.com>:<br>
<br>
> Got a few more details:<br>
> at first, this is a problem in grep.exe (at least this one distributed<br>
> with Geany, maybe other/better binaries are out there):<br>
><br>
> if I run the grep command on the cmd.exe, I also get the grep: ./??????:<br>
> Invalid argument result. But in your screenshot you got those squares.<br>
> [image: win32_grep_unicode]<br>
> <https://cloud.githubusercontent.com/assets/617017/11814977/ed323d42-a349-11e5-9ada-d11d0ead4202.png><br>
><br>
> For futher testing, I created a directory with a German umlaut (lalelö).<br>
> Result in cmd.exe:<br>
> [image: win32_grep_mixed_cmd]<br>
> <https://cloud.githubusercontent.com/assets/617017/11814994/022d542a-a34a-11e5-9b6e-ebcf2d4b72b1.png><br>
><br>
> Result in Geany:<br>
> [image: win32_grep_mixed_geany]<br>
> <https://cloud.githubusercontent.com/assets/617017/11814996/074105e2-a34a-11e5-8bc6-e7ce3568c3a7.png><br>
><br>
> cmd.exe displays the folder name lalelö correctly but is not able to<br>
> display correctly the UTF-8 encoded search result.<br>
><br>
> In Geany, the result is vice-versa: the folder name is displayed<br>
> incorrectly but the UTF-8 parts are displayed properly.<br>
><br>
> So, related to #784 <https://github.com/geany/geany/issues/784>, we<br>
> probably need to convert the output from external commands back from UTF-16<br>
> to UTF-8. Though I doubt whether this can ever work properly if in the same<br>
> output there is also UTF-8 encoded text. At least I have no idea how this<br>
> could work.<br>
><br>
> For curiosity, I just tested grep.exe from the MSYS2 environment:<br>
> [image: win32_msys2_grep_mixed_geany]<br>
> <https://cloud.githubusercontent.com/assets/617017/11816518/041f3e2c-a351-11e5-8aa3-c34405843ea6.png><br>
><br>
> So yeah, MSYS2 grep.exe seems to work nicely with Geany.<br>
> @NTMan <https://github.com/NTMan> it would be cool if you could test the<br>
> grep.exe in the archive at<br>
> http://repo.msys2.org/msys/x86_64/grep-2.22-1-x86_64.pkg.tar.xz. This is<br>
> exactly the same as I used for the last test (verified with md5sum). I'm<br>
> not sure whether this binary is supposed to work without a MSYS2<br>
> environment and I cannot test this.<br>
><br>
><br>
><br>
​grep from cygwin​<br>
<br>
<br>
<br>
<br>
​​grep from msys​<br>
<br>
<br>
​<br>
<br>
both return file path ok for my system.<br>


<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/783#issuecomment-165026828">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4MfLWU3mbkfNPZF64NyCfW3ueq1ks5pQRHogaJpZM4GrMZ5.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/783#issuecomment-165026828"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>