[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55452] fopen() does not support encoding argu

From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55452] fopen() does not support encoding argument
Date: Sat, 9 Mar 2019 17:16:09 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

Follow-up Comment #23, bug #55452 (project octave):

Builds now with those patches. I've updated the octave-default-with-55452

Same failures – just textscan on UTF-16 with a BOM.

I'm guessing the BOM is causing it to erroneously detect a string/delimiter
boundary at the very beginning of the string.

>> [fid,msg] = fopen('encoded-files/ex-001/txt-UTF-16.txt', 'r', 'native',
fid =  19
msg =
>> str = textscan(fid, '%s', 'Delimiter','')
str =
  [1,1] =
    [1,1] =
    [2,1] = Hello, world!



Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]