<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - disp function does work wrong with Cyrillic string"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=10493">bug 10493</a>
                <br><br>
                ---------- Bug Summary ----------- <br>disp function does work wrong with Cyrillic string <br><br>

          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sgougeon@free.fr
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>Input / output
           </td>
           <td>Console
           </td>
         </tr></table>
      <p>
        <div>

            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - disp function does work wrong with Cyrillic string"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=10493#c16">Comment # 16</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - disp function does work wrong with Cyrillic string"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=10493">bug 10493</a>
              from <span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span></b>
        <pre>(In reply to Stanislav from <a href="show_bug.cgi?id=10493#c14">comment #14</a>)
<span class="quote">> I do not know what is changed in source code, but I have discovered that scilab-master-1340120954 is cyrillic-friendly.</span >

Where word-wrapping occurs depends also on the console's width.

Actually, there are 2 bugs here:

* the first one is that the length of non-ascii strings is still badly computed by disp() before being compared to lines():
  with lines()==[106 0], disp() should not wrap at all "проверка работы команды дисп с длинной кириллической строкой", that is only 60-chars wide.
  The same abusive wrapping occurs in other languages with special chars.

* second: wrapping should be performed preferentially on spaces, tabs, non-alphanumeric chars, whatever is the language.
  Bad wrapping in the middle of a word also occurs with ascii contents:
-->disp("test for disp function: how it cope with a long Latin string for a very very long sentence thatreally could be wrapped in a bad way");

 test for disp function: how it cope with a long Latin string for a very very long sentence thatreally co 
      uld be wrapped in a bad way</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>