<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://sobereva.com/wfnbbs/extern.php?action=feed&amp;tid=616&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Multiwfn forum / grep shows "Binary file matches"]]></title>
		<link>http://sobereva.com/wfnbbs/viewtopic.php?id=616</link>
		<description><![CDATA[The most recent posts in grep shows "Binary file matches".]]></description>
		<lastBuildDate>Sat, 05 Feb 2022 18:59:24 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2217#p2217</link>
			<description><![CDATA[<p>Dear Tian Lu,</p><p>Thank you so much!</p><p>Best regards,<br />Igor</p>]]></description>
			<author><![CDATA[dummy@example.com (i.s.ger)]]></author>
			<pubDate>Sat, 05 Feb 2022 18:59:24 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2217#p2217</guid>
		</item>
		<item>
			<title><![CDATA[Re: grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2216#p2216</link>
			<description><![CDATA[<p>Dear Igor</p><p>I have updated Multiwfn package, now all files are in UTF-8.</p><p>Best regards,</p><p>Tian</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Sat, 05 Feb 2022 14:17:03 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2216#p2216</guid>
		</item>
		<item>
			<title><![CDATA[Re: grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2215#p2215</link>
			<description><![CDATA[<p>Dear Tian Lu,</p><p>I see that problem both in Ubuntu in WSL and in Fedora 34 with the source code package of MultiWFN 3.8(dev) from 31 January 2022.<br />I found that these files have specific charset:</p><div class="codebox"><pre><code>$ file -i * | grep text/plain | grep iso
basin.f90:              text/plain; charset=iso-8859-1
excittrans.f90:         text/plain; charset=iso-8859-1
fuzzy.f90:              text/plain; charset=iso-8859-1
hyper_polar.f90:        text/plain; charset=iso-8859-1
otherfunc3.f90:         text/plain; charset=iso-8859-1
population.f90:         text/plain; charset=iso-8859-1
sub.f90:                text/plain; charset=iso-8859-1
topology.f90:           text/plain; charset=iso-8859-1
util.f90:               text/plain; charset=iso-8859-1</code></pre></div><p>But this charset is wrong: the source code has other specific encodings. For example, util.f90 has GBK encoding.</p><p>I have attached a patch that changes encodings in problem files to universal UTF-8 charset.</p><p><a href="http://sobereva.com/wfnbbs/uploads/4d287b13e6177b3ab09fb32254950bfc.txt" rel="nofollow">0001-Use-UTF-8-charset.patch.txt</a></p><p>You could apply that using `patch &lt; 0001-Use-UTF-8-charset.patch.txt` in the root directory of MultiWFN.</p><p>Best regards,<br />Igor</p>]]></description>
			<author><![CDATA[dummy@example.com (i.s.ger)]]></author>
			<pubDate>Sat, 05 Feb 2022 05:21:23 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2215#p2215</guid>
		</item>
		<item>
			<title><![CDATA[Re: grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2213#p2213</link>
			<description><![CDATA[<p>Dear Igor,</p><p>I don&#039;t have this problem, at least under CentOS 7 for files in source code package of Multiwfn 3.8(dev). These files are plain text files and should not be treated as binary files. I don&#039;t know why their status has become binary file on your computer.</p><p>Best regards,<br />Tian</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Fri, 04 Feb 2022 23:20:07 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2213#p2213</guid>
		</item>
		<item>
			<title><![CDATA[Re: grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2212#p2212</link>
			<description><![CDATA[<p>Dear Tian Lu,</p><p>One of example is </p><div class="codebox"><pre><code>$ grep &quot;overlap&quot; util.f90 -i
! *** Overlap ***
Binary file util.f90 matches</code></pre></div><p>The fastest way to detect binary files is to run the following command:</p><div class="codebox"><pre><code>$ grep &quot;.&quot; * | grep &quot;Binary file&quot;</code></pre></div><p>and it produces (slightly cleaned):</p><div class="codebox"><pre><code>Binary file basin.f90 matches
Binary file excittrans.f90 matches
Binary file fuzzy.f90 matches
Binary file hyper_polar.f90 matches
Binary file otherfunc3.f90 matches
Binary file population.f90 matches
Binary file sub.f90 matches
Binary file topology.f90 matches
Binary file util.f90 matches</code></pre></div><p>Best regards,<br />Igor</p>]]></description>
			<author><![CDATA[dummy@example.com (i.s.ger)]]></author>
			<pubDate>Fri, 04 Feb 2022 22:30:05 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2212#p2212</guid>
		</item>
		<item>
			<title><![CDATA[Re: grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2211#p2211</link>
			<description><![CDATA[<p>Dear Igor,</p><p>I don&#039;t find the problem of grep you mentioned. For example, in the source code folder, if I run &quot;grep cellmaxxyz *.f90&quot;, then the following information will be shown on screen.</p><div class="codebox"><pre><code>PBC.f90:subroutine cellmaxxyz(xmax,ymax,zmax)
plot.f90:    call cellmaxxyz(xmax,ymax,zmax)</code></pre></div><p>Copying dislin_d-11.0.a to noGUI directory is not harmful.</p><p>Best regards,</p><p>Tian</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Fri, 04 Feb 2022 15:43:57 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2211#p2211</guid>
		</item>
		<item>
			<title><![CDATA[grep shows "Binary file matches"]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2210#p2210</link>
			<description><![CDATA[<p>Dear Tian Lu,</p><p>I&#039;m trying to implement some additional features for testing my own theory to Multiwfn.</p><p>Sometimes, I use grep for finding descriptions of routines. Unfortunately, if I forget to add -a flag to the grep command, sometimes I see:</p><div class="codebox"><pre><code>Binary file sub.f90 matches
Binary file topology.f90 matches
Binary file util.f90 matches</code></pre></div><p>It seems to me that the problem is with some specific characters that are not presented in the UTF-8 charset.</p><p>Could you please fix the encoding?</p><p>Additionally, I noticed that noGUI.sh copies dislin_d-11.0.a to noGUI directory and then it is not used.</p><p>Best regards,<br />Igor</p>]]></description>
			<author><![CDATA[dummy@example.com (i.s.ger)]]></author>
			<pubDate>Fri, 04 Feb 2022 09:49:11 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2210#p2210</guid>
		</item>
	</channel>
</rss>
