[mlpack-git] [mlpack] LoadSave Unit test fails Windows x64 (#468)

Joseph Mariadassou notifications at github.com
Tue Nov 10 01:16:53 EST 2015


Hi Ryan
I contacted Conrad S about this. The issue is that when a file stream is
opened without ifstream::binary flag, Windows  filters the CR-LF bytes to
just LF. As a result the read does not read(buf,len) does not fill the buf
with len bytes. On Un*x there is only one LF and binary or not makes no
difference.
I have no idea how to fix this, nor does Conrad AFAIK, save asking the
client to open the file in binary always.
Hope you can do that in MLPack.
Regards
Joe


On Mon, Nov 9, 2015 at 11:58 AM, Ryan Curtin <notifications at github.com>
wrote:

> Hey, let me know what the results of this are. If Armadillo issues a
> bugfix, we can add an #ifdef to point out the bug if the affected Armadillo
> versions are used on x64 Windows.
>
>> Reply to this email directly or view it on GitHub
> <https://github.com/mlpack/mlpack/issues/468#issuecomment-154894731>.
>



-- 
Joseph Chakravarti Mariadassou
http://thesundayprogrammer.com


---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/468#issuecomment-155309362
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151109/26a4e5a8/attachment.html>


More information about the mlpack-git mailing list