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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #51203] xlswrite(...'com') output results in a corrupted .xlsx / unicode issues
Date: Mon, 10 Jul 2017 11:38:29 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0

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

Philip,

Currently, I don't have LibreOffice or even Java installed. I always was using
the OCT interface. If I understood correctly, both are needed to trial all
available interfaces. Am I missing anything else?

Meanwhile, can you check the following code snippet for two directories that
failed the test in bug #51388 (comment #2 there)?

t_delay = 0; % start test with no delay
t_inc = 0.1; % increment delay each time bug was triggered
max_no_change = 5; % number of successful (outer) loops before we trust the
delay
t_max = 5; % approx. maximum time for test to run

num_no_change = 0;
t_start = tic;
while (num_no_change++ <= max_no_change) && (toc (t_start) < t_max)
  cd (somedirectory1)
  pause (t_delay);
  while ~strcmpi (somedirectory1, pwd)
    warning ('bug triggered');
    t_delay += t_inc;
    num_no_change = 0;
    cd (somedirectory1)
    pause (t_delay);
  endwhile
  cd (somedirectory2)
  pause (t_delay);
  while ~strcmpi (somedirectory2, pwd)
    warning ('bug triggered');
    t_delay += t_inc;
    num_no_change = 0;
    cd (somedirectory2)
    pause (t_delay);
  endwhile
endwhile

toc (t_start)
t_delay
num_no_change

if num_no_change <= max_no_change
  warning ("No reliable delay time found within t_max.")
endif


It runs quite fast on a machine that doesn't experience the error (50-60ms for
me).
You might need to tweak the abort criteria (first 4 lines) to get reliable
results...

    _______________________________________________________

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]