octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51203] xlswrite(...'com') output results in a


From: Andrey Aleshin Igorevich
Subject: [Octave-bug-tracker] [bug #51203] xlswrite(...'com') output results in a corrupted .xlsx / unicode issues
Date: Tue, 20 Jun 2017 08:04:06 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #35, bug #51203 (project octave):

I'm sorry for long time. I don't know a reason, but I found an alternative
solution. Below about it.

Well.
Octave 4.2.1 from zip:
https://ftp.gnu.org/gnu/octave/windows/octave-4.2.1-w64.zip without any
patches (had no time to try their)

io *|   2.4.7
windows *|   1.2.4:

Initial conditions:
empty work folder (05octave to me)

Close and open your Octave.

We create a new script: o076xls.m
with this content:


clear; clc; close all; %help;
cell1={'One, two, three, 4'};
filename=[mfilename('fullpath'),'.xlsx'];
if exist(filename)==2
  delete(filename);
end
xlswrite(filename,cell1,[],[],'oct');


and run it by pressing F5.

Running it many times it do right output xlsx.

Then we execute manually this command:

system('mkdir 1 2 3 4 5 6 7 8 9');

to create 9 folders (this is an example a non-empty folder with main script).

Then run our script by pressing F5 many times. 3-4

And sometimes we have no an output file xlsx, but have some parts of it.

I found just now:
If we write a pause:

pause(0.05);
-verbatim

all correct.
I don't know how this delete's command affect to no stable output, but pause
is an alternative soluition.

addiction: 
bug is absent when use with 'com' interface .


(file #40948, file #40949, file #40950, file #40951)
    _______________________________________________________

Additional Item Attachment:

File name: 01.png                         Size:52 KB
File name: 02.png                         Size:37 KB
File name: 03.png                         Size:61 KB
File name: 04.png                         Size:59 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51203>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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