[Bugzilla] [Bug 10493] Samuel GOUGEON has changed cc, component

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Fri Mar 23 01:21:15 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=10493
--------- Bug Summary -----------
disp function does work wrong with Cyrillic string

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
cc, component


Samuel GOUGEON <sgougeon at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sgougeon at free.fr
          Component|Input / output              |Console

--- Comment #16 from Samuel GOUGEON <sgougeon at free.fr> ---
(In reply to Stanislav from comment #14)
> I do not know what is changed in source code, but I have discovered that scilab-master-1340120954 is cyrillic-friendly.

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

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180323/300afa1e/attachment.htm>


More information about the Bugzilla mailing list