<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <font face="Courier New">Samuel,<br>
      <br>
      I've found that the crash is not consistent. Sometimes it crashes,
      sometimes not. I actually discovered the problem in a much longer
      text read from a text file using mgetl() and inserting manually
      the line feed and cariage return characters (13 and 10).<br>
      <br>
      The problem appears indeed when displaying, not creating, so it
      seems thar the problem is not with ascii() but, as you say, with
      the display feature (filename is any plain text file):<br>
      <br>
      <br>
      fid = mopen(filename, 'rt');<br>
      text1 = mgetl(fid, -1);<br>
      mclose(fid);<br>
      <br>
      text = [];<br>
      for k=1:size(text1,1)<br>
          text = [text, ascii(text1(k)), 13, 10];<br>
      end<br>
      <br>
      text = ascii(text);<br>
      <br>
      <br>
      My first example ctrashes sometimes Scilab. Displaying this one
      either just entering the variable text or using disp(text)
      ctrashes it always (with a file with 3200 characters and 3
      paragraphs) <br>
      <br>
      Regards,<br>
      <br>
      Federico<br>
      <br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 07/05/2021 05:44, Samuel Gougeon
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ed1fb5f4-ddf4-2ad1-50cf-20b458c895fc@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Hello,</div>
      <div class="moz-cite-prefix"><br>
        Le 07/05/2021 à 08:57, Federico Miyara a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:17d3ffd6-e250-8275-804d-b7874625f068@fceia.unr.edu.ar">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <br>
        <font face="Courier New">Dear all,<br>
          <br>
          If I run this simple code<span style="color:rgb(50,185,185);"></span><br>
          <span style="color:rgb(50,185,185);"></span><br>
          <span style="color:rgb(50,185,185);">ascii</span><span
            style="color:rgb(74,85,219);">(</span><span
            style="color:rgb(74,85,219);">[</span><span
            style="color:rgb(50,185,185);">ascii</span><span
            style="color:rgb(74,85,219);">(</span><span
            style="color:rgb(188,143,143);">"</span><span
            style="color:rgb(188,143,143);">hello</span><span
            style="color:rgb(188,143,143);">"</span><span
            style="color:rgb(74,85,219);">)</span><span
            style="color:rgb(0,0,0);">,</span> <span
            style="color:rgb(188,143,143);">13</span><span
            style="color:rgb(0,0,0);">,</span><span
            style="color:rgb(188,143,143);"> 10</span><span
            style="color:rgb(0,0,0);">, </span><span
            style="color:rgb(50,185,185);">ascii</span><span
            style="color:rgb(74,85,219);">(</span><span
            style="color:rgb(188,143,143);">"</span><span
            style="color:rgb(188,143,143);">world</span><span
            style="color:rgb(188,143,143);">"</span><span
            style="color:rgb(74,85,219);">)</span><span
            style="color:rgb(74,85,219);">]</span><span
            style="color:rgb(74,85,219);">)</span><br>
          <span style="color:rgb(74,85,219);"></span><br>
        </font><font face="Courier New">Scilab crashes.</font></blockquote>
      <p>Do you get a crash if you prevent displaying the result with a
        final semi-colon?<br>
        <br>
      </p>
      <div class="moz-cite-prefix">Le 07/05/2021 à 09:26, Jean-Yves
        Baudais a écrit :<br>
      </div>
      <blockquote type="cite"
cite="mid:1164700571.180400.1620372408024.JavaMail.zimbra@insa-rennes.fr">On
        Scilab 6.1.0.1582621796 </blockquote>
      <p>IMHO, that's the question. Some things were fixed for the last
        year about <i>the display</i> of ascii(13), that actually
        sometimes crashed.<br>
        In the nightly built version, i get the expected display:<br>
        <font face="monospace"><br>
          --> ascii([ascii("hello"), 13, 10, ascii("world")])<br>
           ans  =<br>
            "hello<br>
          world"<br>
        </font></p>
      <p>Regards<br>
        Samuel<br>
        <br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>           </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>