Hi Ryan<br>
I contacted Conrad S about this. The issue is that when a file stream is<br>
opened without ifstream::binary flag, Windows  filters the CR-LF bytes to<br>
just LF. As a result the read does not read(buf,len) does not fill the buf<br>
with len bytes. On Un*x there is only one LF and binary or not makes no<br>
difference.<br>
I have no idea how to fix this, nor does Conrad AFAIK, save asking the<br>
client to open the file in binary always.<br>
Hope you can do that in MLPack.<br>
Regards<br>
Joe<br>
<br>
<br>
On Mon, Nov 9, 2015 at 11:58 AM, Ryan Curtin &lt;notifications@github.com&gt;<br>
wrote:<br>
<br>
&gt; Hey, let me know what the results of this are. If Armadillo issues a<br>
&gt; bugfix, we can add an #ifdef to point out the bug if the affected Armadillo<br>
&gt; versions are used on x64 Windows.<br>
&gt;<br>
&gt; —<br>
&gt; Reply to this email directly or view it on GitHub<br>
&gt; &lt;https://github.com/mlpack/mlpack/issues/468#issuecomment-154894731&gt;.<br>
&gt;<br>
<br>
<br>
<br>
-- <br>
Joseph Chakravarti Mariadassou<br>
http://thesundayprogrammer.com<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/468#issuecomment-155309362">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLJpmy_-_2UDbVNYsE9nEpCGAzm-ks5pEYNVgaJpZM4Gd7SI.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/mlpack/mlpack/issues/468#issuecomment-155309362"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>