summaryrefslogtreecommitdiffstats
path: root/scilab/CHANGES_5.2.X
blob: 33dc9544de0ce579a38cbf84b2edf51b4ce1d0eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
               Changes between version 5.2.0-beta1 and 5.2.0-xxx of Scilab
               ==========================================================


Text editor:
============

* Rename of the item menu "Indent" => "Reformat Selection" (Bug #5219)

* Mnemonic added on View ("V") and Document ("D") in the menu bar

* Refactoring of some large part of the source code


Localization:
=============

* Some strings were untranslatable/untranslated (Bug #4124)


Documentation improvements:
===========================

* More examples with LaTeX use-cases (colors, etc)

Compilation:
============

* Rebuild some C++/Java wrappers with a newer version of SWIG

Bug fixes:
==========

* bug 5325 fixed - Wrong default path on FileChooser

* bug 5111 fixed - Xcos : "Save As" default path is the current file path

* bug 4670 fixed - ilib_build examples updated with api_scilab.

* bug 5312 fixed - Xcos : adding 'Compile' informations

* bug 5099 fixed - Xcos : diagram not visible after a "Fit diagram to view"

* bug 4401 fixed - isnum returned wrong values.

* bug 4767 fixed - minreal.sci contained a couple of references to the variable
                   'T', which was not defined in the function.

* bug 4844 fixed - The help page for the deletefile function did not specify 
                   what is the meaning of the output variable.

* bug 5106 fixed - mopen help page did not contain any example.

* bug 5107 fixed - mgetstr help page did not contain any example.

* bug 5190 fixed - context menus are now available under MacOS

* bug 5195 fixed - "get" crashed with "Lycée" toolboxe.

* bug 5213 fixed - ATOMS GUI : Module's author(s) was not displayed

* bug 5235 fixed - Error message added when launching Scicos

* bug 5237 fixed - ATOMS : If the load of an ATOMS toolbox produces an error.
                   The error is now catched.

* bug 5251 fixed - getversion help page updated.

* bug 5258 fixed - diary help page had some erroneous timestamp prefix formats.

* bug 5259 fixed - root_properties help page displayed mis-encoded characters.

* bug 5263 fixed - diary returned incorrect path for automatically numbered
                   filenames.

* bug 5271 fixed - ATOMS GUI : Frames title was not emphasized

* bug 5283 fixed - Intel Fortran 11 compiler did not require to import some 
                   settings in Visual Studio.

* bug 5286 fixed - calling the 'lib' function with the wrong path made scilab hangs.

* bug 5292 fixed - There was a conflict between bool and scilab header mex.h
                   (with Visual Studio and mex files)

* bug 5305 fixed - display of filenames used by xcos was wrong (on Windows)

* bug 5307 fixed - In Neldermead, inconsistent shape for the input argument x
                   of the cost function.

* bug 5308 fixed - editor did not check input argument type.

* bug 5326 fixed - graphic_export module was not loaded dynamically.

* bug 5330 fixed - "help str1 str2" returned a error.

               Changes between version 5.1.1 and 5.2.0-beta1 of Scilab
               =======================================================


Xcos:
=====

Xcos is developed simultaneously and together with Scilab, and replaces Scicos
in Scilab distributions. With a new ergonomic and efficient block diagrams 
editor, Xcos provides functionalities for modeling mechanical systems and control
systems, and is particularly suitable for industrial and academic needs.

This new version provides numerous new features:
* Several diagrams can be edited at the same time
* Scilab can be used during the diagram construction
* Diagram edition is available even during simulation
* Drap and drop from palettes to diagram and between diagrams
* History (Undo/Redo) with an unlimited number of actions memorized 
* Viewport to have an overall view of your diagram
* Palette window with new palettes organization
* Improved stability
* Better usability of menus
* Tool tips on block
* Big diagram managements
* Better integration of the demonstrations
* Standard shortcuts (Copy/Paste/Undo/Redo/...)

ATOMS:
======

ATOMS is the packaging system for Scilab's modules. Thanks to ATOMS, any user
running Scilab on a supported operating system is able to
install any modules from Scilab or third-party repositories with only three 
clicks or with just one Scilab command.

For example, the following command will install plotlib:
atomsInstall("plotlib")
This command will:
* download the binary package of plotlib from the Scilab repository
* unpack the package
* configure the package
* load the package

Many packages are already available and more are going to be offered
on Scilab's repositories.

This system is fully open to contributors. Anyone can manage his own toolbox
on Scilab ATOMS website (http://atoms.scilab.org) or run his own 
repository.

Note that ATOMS website replaces the current toolboxes/modules web interface.


Text Editor:
============

A new text editor is implemented in this version of Scilab. The editor now
follows the look and feel of Scilab and is integrated into the docking system.

The following features are available:
* Syntaxic colorization
* Automatic indentation
* Line numbering
* Execute into Scilab
* Comment/uncomment of blocks
* Go to line

Graphics:
=========

* Text rendering with LaTeX / MathML

The annotation of Scilab's graphics in MathML or LaTeX is now possible. 
It enables the integration of mathematical equations, greek variables, matrix 
displays... 
This is available in any cases where text can be set in the graphic (label, 
tick, title, xstring...).
For example:
x = 1:0.25:10;y1 = 1 + sin(4*%pi*x / 10);plot(x,y1,'k-');
xstring(6,1.4,'$\leftarrow f \left( x \right) = 1 + \sin \left( \frac{x \cdot 4 \cdot \pi}{10} \right)$');
See demos => Graphics => LaTeX/MathML
Thanks to Calixte Denizet for this feature and the underlying API for LaTeX rendering (project JLaTeXMath)

* New features
  - Antialiasing on graphics
    This new feature improves the quality of graphic rendering.
    It can be activated with the following commands: 
    df = gdf(); df.anti_aliasing = "8x"; plot3d();
    The rationnal and performance tests are available in SEP #16 or can be
    requested in Scilab bugtracker as bug #2984.
  - Add transparency to markdrawing.

* 'xbasc' is obsolete. See 'clf'

Introduction of new binaries:
=============================

The goal of these changes is to improve the capabilities to use Scilab
in different environnements and use cases.

* Scilab 5.2 introduces new binaries in the distribution:

  - classical - The GUI application (equivalent to Scilab Standard Mode).
    This program is exactly the same as in the previous version and all arguments
    are still available
    Name: scilab

  - Advanced Command-Line Interpreter (ACLI) - Interpreter in command line with the graphic capabilities available 
    (equivalent to Scilab NW Mode)
    Name: scilab-adv-cli

  - Command-Line Interpreter (CLI) - Interpreter in command line without the graphic or Tcl/Tk capabilities (faster)
    (equivalent to Scilab NWNI Mode)
    Name: scilab-cli

  See SEP #18 for more details

* The pipe has been plugged back under all operating systems
    It is now possible to do:
    echo "disp(%pi)"|./bin/scilab-adv-cli
    echo "disp(%pi)"|./bin/scilab-cli
    echo "disp(%pi)"|./bin/scilab -nw
    echo "disp(%pi)"|./bin/scilab -nwni

* Add error code capability to exit (SEP #19 and request 505).
  Example:
  echo "if 1<>2 then exit(99) end"|scilab -nwni; echo $?
  returns 99


Optimization:
=============
* New features
 - Created neldermead component for simplex-based direct search optimization
 - Created nmplot component for fast plots of neldermead optimization
 - Created optimbase component to build optimization algorithms
 - Created optimsimplex component to build direct search algorithms
 - Created fminsearch optimization function
 - Created optimget/optimset to configure fminsearch
 - Created optimplotfunccount, optimplotfval, optimplotx as plotting functions for fminsearch
* Improvements
 - Added examples in the help of optim for logging feature and optimization
   based on numerical derivatives


Extension capabilities of Scilab (API Scilab):
==============================================

In the previous versions of Scilab, there was no clear or easy way to extend
Scilab or to use it as an embedded application. 
Knowing these drawbacks, Scilab 5.2 tackles all those issues by prodiving a new
consistent, documented and easy way to use API. 

* A new API called api_scilab is available. This API provides functions to
  read/write data from/to Scilab memory.
  It provides many advantages:
  - management of all Scilab data types
  - consistency over all data types
  - error management
  - fully documented
  - fully tested by unitary tests
  - and it will be maintained over future versions of Scilab

  Note that all other Scilab API (straight access to the Scilab stack, stack1,
  stack2 and stack3) will be maintained in the Scilab 5.X family but most of
  them will be dropped in the 6 family.
  Do not hesitate to submit a bug report if you would like to see new features
  and functions in Scilab API.

* In the enum sci_types which lists all Scilab data types, the type 
  "sci_lufact_pointer" has been renamed "sci_pointer".
  A define of "sci_lufact_pointer" on "sci_pointer" has been added to backward
  compatibilities.
  The rationale is to improve the use in special case of the pointer data type
  to avoid memory duplication.

* Under all operating systems but Windows, all headers are not installed in a single directory 
  in order to simplify the use   of Scilab features in the dynamic link.
  See SEP #32 for more information

* From this version of Scilab, only a defined and documented number of headers
  are installed. 
  Thanks to this change, a module/toolbox developer knows exactly what are the
  available functions provided by Scilab.
  See SEP #35. 
  Do not hesitate to contact us if you have been using a Scilab header which has been removed from Scilab 5.2.


call_scilab module:
===================

Call Scilab is the API which allows Scilab to be called as computing engine or
embedded into a third-party application.
From this version, Call Scilab is based on Scilab API and handles all Scilab
data types (in previous versions, Double, Boolean, Complex Matrixes and String 
elements were managed).
The Call Scilab function has the same profile as Scilab API with 'Named' into 
the function name.
 
* CallScilab.h renamed call_scilab.h (See SEP #34). CallScilab.h is still 
  available and points to call_scilab.h

* Documentation and examples about call_scilab added (BooleanManagement call_scilab
  compile_and_run_call_scilab DisableInteractiveMode GetLastJob DoubleManagement
  ScilabHaveAGraph SendScilabJobs SendScilabJob StartScilab StringManagement
  TerminateScilab)

* Some function profiles in stack3.h provided to manage named variable
  have been moved in CallScilab.h (please note that we have not changed the ABI
  and the symbols remain in the core library)
  The goal of this modification is to separate functions dealing with the
  call_scilab API and the internal API used in the gateways.
  Note that all moved functions are considered as obsolete.

* In call_scilab, all previous functions available to read/write data from/to
  the Scilab engine are now obsolete but supported until Scilab 6:

  * C2F(readmat) is obsolete. Please use readNamedMatrix in api_double.h
  * C2F(readchain) is obsolete. Please use readNamedMatrixOfString or readNamedMatrixOfWideString in api_string.h
  * C2F(matptr) is obsolete. Please use readNamedMatrixOfDouble in api_double.h
  * C2F(creadmat) is obsolete. Please use readNamedMatrix in api_double.h
  * C2F(creadbmat) is obsolete. Please use readNamedMatrixOfBoolean in api_boolean.h
  * C2F(creadcmat) is obsolete. Please use readNamedComplexMatrixOfDouble in api_double.h
  * C2F(creadchain) is obsolete. Please use readNamedMatrixOfString or readNamedMatrixOfWideString in api_string.h
  * C2F(creadchains) is obsolete. Please use readNamedMatrixOfString or readNamedMatrixOfWideString in api_string.h in api_string.h
  * C2F(cmatptr) is obsolete. Please use readNamedMatrixOfDouble in api_double.h
  * C2F(cmatcptr) is obsolete. Please use readNamedComplexMatrixOfDouble in api_double.h
  * C2F(cmatsptr) is obsolete. Please use createNamedMatrixOfString or createNamedMatrixOfWideString in api_string.h
  * C2F(cmatbptr) is obsolete. Please use createNamedMatrixOfBoolean in api_boolean.h
  * C2F(cwritemat) is obsolete. Please use createNamedMatrixOfDouble in api_double.h
  * C2F(cwritecmat) is obsolete. Please use createNamedComplexMatrixOfDouble in api_double.h
  * C2F(cwritechain) is obsolete. Please use createNamedMatrixOfString or createNamedMatrixOfWideString in api_string.h
  * C2F(cwritebmat) is obsolete. Please use createNamedMatrixOfBoolean in api_boolean.h

* "make check" now also builds call_scilab examples

* An example to call Scilab from C# added.
   see SCI/modules/call_scilab/examples/call_scilab/NET/C# directory

* An example to call Scilab from VB.NET added.
   see SCI/modules/call_scilab/examples/call_scilab/NET/VB.NET directory

Option configuration:
=====================

* The file jvm_options.xml has been moved into etc/jvm_options.xml in order to
facilitate the use of this configuration file.


Mac OS X:
=========

* Support of Snow Leopard

* Docking system enabled

* bug 4087 fixed - Under Mac OS X, an Apple + C shortcut (Ctrl + C) did not work from the console.

* bug 4508 fixed - When saving/exporting a figure under
                   Mac OS X, a file could not be created.

* bug 4393 fixed - When launching Scilab from the puffin icon, it did not detect the locale and switched to English.

* bug 4949 fixed - Using Xcos/Scicos in the source tree environnement, with
                   schema using sundials library, the application had problems
                   to load the dynamic library.

toolbox_skeleton:
=================

The toolbox skeleton is an example of standard toolbox which shows most of the
use cases.

* examples of gateways functions (c_sum, f_sum, cpp_find) rewritten with new API.

* cleaner added

Input/Output functions:
=======================

* Input arguments of fprintf are now checked 

* save / load are now based on the HDF5 file format. The specification of the
formats is going to be released in a near future. 

* Rewrite:
    + getenv
    + diary - SEP 23

Core functions:
===============

* Rewrite:
   + mode
   + predef
   + type
   + typename
   + whereis
     
* 'sethomedirectory' is obsolete. See 'home'.

* 'getf' is obsolete. See 'exec'.

* toolboxes is obsolete.

fileio functions:
=================

* Input arguments of functions are now checked 
    (mclearerr, mclose, merror, mget, mgetstr, meof, mopen, mput, mputstr, mseek, mtell)
    
* fileinfo manages column vector of strings (SEP #25)
  
* basename uses fileparts
  
* pathconvert: If the flagtrail argument is set to FALSE and the trailing separator
                of the path is removed (if present of course). See Bug 4468.
                  
* 'getcwd' is obsolete. See 'pwd'. 

* isfile: checks if filename is an existing file.

* movefile: moves files or directory (Request 661)

* Rewrite:
   + copyfile (primitive)
   + fileparts (primitive)
   + isdir manages matrix of strings as input argument
   + basename (primitive)
   + pathconvert (primitive)
   + cd, chdir (primitive)
  
Dynamic link:
=============

* Windows: temporary files (objects) are generated in an intermediate subdirectory (Release or Debug)
   ilib_for_link and ilib_gen_Make (with Visual studio) use a same makefile template.
   (SCI/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.VC)
  
* ilib_for_link and ilib_gen_Make with lcc-win32 use a same makefile template.
   (SCI/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCC)

* ilib_verbose (SEP #17) Set level of display returned by dynamic link functions.
 
* add an example to call a Scilab macro from a C interface
   (see SCI/modules/dynamic_link/examples/interfaces/call_scilab_function directory)
   
* a 'cleaner.sce' file is generated by 'ilib_for_link' and 'ilib_build'.
 
* addinter: each interface added can manage 999 functions (see bug 4675). 

* ilib_gen_gateway can generate gateway without PutLhsVar (Managed by user, in this case)
  see help of 'ilib_gen_gateway' about this modification and 
  SCI/contrib/toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce (example)

* ilib_gen_loader now generates loaders which can be executed outside the loader's directory

* bug 4726 fixed - Under Windows, when the dynamic link was copying the files,
  in some cases, it was going to copy backup files (for example, sci_luinc.c.bak
  instead of sci_luinc.c)

* bug 4919 fixed - If the source file was stored in TMPDIR, the dynamic link
  was removing the content of this file.

Online Help:
============

* Sub-chapters are now allowed (See SEP #24)

* xmltochm exports help to chm format (Windows)

* add_help_chapter now accepts string array as input argument: consequently,
   several online help chapters can be added at the same time.

* add_help_chapter now accepts to add help chapters with the same title.

* In the documentation, the font size of the equations has been increased 
  for a better readability.

* Javasci FAQ page added

* Online help XML files have been converted into UTF-8
 

Source reorganization:
======================

* Makefile.incl.mak (Windows, dynamic link) moved from SCI directory to
  SCI/modules/src/scripts
  
* newest, get_absolute_file_path, getrelativefilename moved from io to fileio.

* bug 3668 fixed - formatnumber.f, dmdsp.f, ... moved in output_stream module.

* printf, msprintf, mprintf, print moved in output_stream module.

* disp moved in output_stream module.

* bug 3668 fixed - lib, deff, getf, exec, execstr moved in functions module.

* oldsave, oldload functions (only used with macros of Scilab 2.4) are removed
  Replaces oldsave, oldload by save and load in your code.
  
* bug 3669 fixed - integrate, intc and intl moved in Differential equations
  interp1, interp2d and splin2d  moved in the Interpolation module.

* libs/MALLOC/src/malloc.c is no longer build (used to be built for 64 
bits archs). Note that if Scilab is built on a 64 bits and triggers a 
seg fault on startup, uncomment the related line in 
libs/MALLOC/Makefile.am and launch autoreconf.


Compilation:
============

* Visual studio uses default runtime library /MD (msvcrt.lib) to build all libraries of Scilab.

* Scilab on Windows built with Intel Fortran 11.0.061 and Intel C++ 11.0.074

* Symbols in dlls are explicitly exported on Windows.
  In previous versions of Scilab all symbols were exported.

* modelicac (Xcos/Scicos) built with Ocaml 3.11.0 on Windows

* blas, lapack, arpack libraries moved as pre-requirements (Windows)

* blas, lapack libraries moved as pre-requirements (Linux/Unix/Mac OS X)

* lapack 3.2 used on Windows

* functions module is dynamically loaded by Scilab.

* autoconf updated to version 2.64

* automake updated to version 1.11

* libtool updated from version 1.5.26 to 2.2.7a (Closes bug #4279) with some
  patches for Mac OS X/Darwin support

* --enable-debug-java add two options to the JVM args (-verbose:jni and
  -Xcheck:jni) in order to provide more feedbacks on debug
  Note that this should not be used into a binary since it is expensive

* C++ => Java connector updated (using GIWS - 
  http://www.scilab.org/giws/ version 1.0.5)
  There was a bug in GIWS:
  The use of a static method returning an int was not calling the right
  method.
  It did not seem to trigger any errors in the past but the latest 
  version of the JDK is now complaining.


* Patches applied (see bugs #4506, #4517 & #4588) by Dan McMahill. They fix 
  some compile time problems under NetBSD which also improve all operating systems but Windows.
    - adds some missing $host to the 64 bit list.  
    - adds a needed compiler flag for alpha-*-netbsd
    - adds autoconf check for term.h header
    - adds autoconf checks for gettext
    - adds autoconf check for dlopen in -ldl 
      (on some systems, we do not need -ldl because dlopen is in libc).  
      Do not hardcode linking with -ldl but rely on this new check.
    - adds correct getrlimit() argument for NetBSD and DragonFly
    - avoids pulling in an OSF1 specific header on NetBSD/alpha
    - adds missing newline at the end of a file
    - adds missing XML LIBS and CFLAGS
    - adds LTLIBINTL to the list of common objects needed for linking the top level binary.
    - adds checks for term.h and termcap.h headers.  
    - adds check for -lpthread
    - reworks the checks for curses a little bit to search for 
      curses.h and -lcurses first followed by ncurses.h and -lncurses.   
    - uses configure results to protect the inclusion of curses.h, 
      ncurses.h, term.h, and termcap.h.
    - adds __DragonFly__ to a few conditional lines.
    - removes the static declaration of BC to match what was found
      in a header file.
    - adds missing enable_keypad_mode()
    - uses configure results to protect the inclusion of curses.h, 
      ncurses.h, term.h, and termcap.h.
    - Large amounts of cleanup of the PVM configure code (Closes: #4151)

* Improve detection of build/run environment under GNU/Linux Debian under
  arm, armel, mips & mipsel

tests:
======

* test_run() now accepts Sub-Modules (See SEP #31)

Internationalization:
=====================

* Portugues do Brazil localization added (Thanks Daniel de Souza Grilo and others)

* Japanese localization added (Thanks Hiroshi Saito)

* Italian localization added (Thanks Carmelo Leggio)

* More help pages translated to Portugues do Brazil (Thanks Daniel de Souza Grilo)

* Catalan localization added to Scipad (Thanks Oriol Gonzalez)

* Japanese localization added to Scipad (Thanks Hiroshi Saito)

Bugs:

* bug 2627 fixed - Scilab 5 console retrieved input strings in UTF-8 format and Scilab did not
                   manage this format but ISO-8859.

* bug 3228 fixed - ascii function was broken for extended set (example: ascii('é')).

* bug 3433 fixed - Length with a UTF string returned an incorrect size

* bug 3472 fixed - Dropping files into Scilab shell did not work when the path
                   contained accented characters.

* bug 3666 fixed - 'input' returned accented characters.

* bug 3701 fixed - "Error during call to UTFToLocale: No such file or directory" on Windows.

* bug 3839 fixed - strrev() did not work correctly if the string to be reversed
                   included some accented characters.

* bug 4003 fixed - setenv & getenv did not manage utf string on Windows.

* bug 4012 fixed - Display of month and week were wrong in sessions starts and ends (history manager).

* bug 4019 fixed - With -nw or -nwni mode on Windows, console returned error about
                   localization.

* bug 4068 fixed - Accented names in directories were not supported.

* bug 4145 fixed - Simplified Chinese file names were not shown properly.

* bug 4233 fixed - exec command with a UTF filename failed.

* bug 4277 fixed - strsubst,regexp, strindex, grep returned strange results if accented
                   characters and character class were associated in the pattern to match.

* bug 4617 fixed - Some items (Console pull down menu and help browser item) 
                 were not translatable

* bug 4660 fixed - Error in the French localization (Edit instead of Edition)

* bug 4758 fixed - Embedded version of autoconf libs.m4 were causing some issues

* bug 4768 fixed - strsplit returned strange results with accented characters

* bug 4915 fixed - The default font in some of the uicontrols applications in
                   Scilab were not handling correctly for the Japanese and
                   others languages. This was happenning with m2sci and the
                   demos browser.

* bug 5071 fixed - isletter("é") returned [%F %F] instead of %F.

* bug 5072 fixed - strspn("aéio","éa") returned 3 instead of 2.

String manipulation:
====================

* Rewrite:
    + strsplit - SEP #26

* 'NumTokens' is obsolete. See 'tokens'.

Java/Scilab API:
================

 - uses api_scilab functions to write & read data (internal for javasci)

 - SciInteger class added  

Functions removed:
==================

* lgfft (See bug #4600)

Linear algebra:
===============
* Clarified documentation for lu function.

Elementary functions:
=====================
* 'sort' is obsolete. See 'gsort'.

TCLSCI interface:
=================
* 'tk_getdir' is obsolete. See 'uigetdir'.
* 'tk_savefile' is obsolete. See 'uiputfile'.

GUI interface:
==============
* 'x_message_modeless' is obsolete. See 'messagebox'.

Bug fixes:
==========

* bug 336  fixed - pspect and cspec help pages improved

* bug 415 fixed - Order in the roots of a polynomial fixed


* bug 667  fixed - scilab.start-file caused an initialization error when you 
                    used predef('all') in a user startup file.

* bug 1412 fixed - A(3,3)=%s,A(:)=%z caused Scilab to hang

* bug 1451 fixed - theta, alpha, leg, flags as optional named arguments for hist3d set

* bug 1628 fixed - With long programs (several hours) a negative value for
                   timer() was get

* bug 1776 fixed - funcprot accepted non-integer arguments

* bug 1809 fixed - Warning message (figure_size) after an invalid graphical script added

* bug 1885 fixed - histplot starts from %eps rather than 0 to avoid logarithmic trouble.

* bug 2042 fixed - copy function altered axes properties.

* bug 2043 fixed - The function copy applied to an axis handle did not work

* bug 2238 fixed - Function returned a wrong error

* bug 2275 fixed - isvector help page added

* bug 2347 fixed - "fun2string" indentation problem with select/case 
                    instruction.

* bug 2446 fixed - "while" documentation help page improved to explain 
                    that the keywords do or then can be ommitted.

* bug 2453 fixed - mfscanf and probably the other variants msscanf mscanf could crash Scilab when
                   first argument was -1 (any number of lines)

* bug 2509 fixed - execstr forgot to store the function name and line number when in the errcatch mode

* bug 2537 fixed - xstring feature improved

* bug 2570 fixed - LCC did not work with some "stk" ref on some old toolboxes.

* bug 2649 fixed - diary() function could not be nested.

* bug 3131 fixed - a glibc >= 2.4 was mandatory (causing Scilab to fail under
                   Debian Etch, Centos 4.X and some other old operating 
                   systems)

* bug 3184 fixed - Ticks of colorbar have disappeared

* bug 3201 fixed - Help page for the function del_help_chapter added

* bug 3264 fixed - More explicit message when too many files have been
                    opened added.

* bug 3422 fixed - The keyword for history search was not updatable

* bug 3488 fixed - Dynamic link functions can now handle Fortran 90 code.

* bug 3533 fixed - lib(dir_path) did not work if the final slash was missing in dir_path.

* bug 3537 fixed - Problem with examples in French help page for metanet functions. 
                    The old graph data structure was used.

* bug 3543 fixed - Wrong parenthesize in struct indices (code generated by tree2code).

* bug 3580 fixed - A gateway declaration containing a false primitive ID or gateway ID crashed Scilab.

* bug 3612 fixed - History manager did not work at startup

* bug 3660 fixed - font_angle was lost on the axis label when exporting through xs2pdf - Thanks to Paul Griffiths for the patch

* bug 3772 fixed - Input argument of 'predef' was not correctly checked.

* bug 3773 fixed - 'ans' was protected with predef('all').

* bug 3884 fixed - chdir, getcwd, pwd moved from core to fileio module.

* bug 3923 fixed - diary() function produced bad files when it tried to record interactive commands.

* bug 3953 fixed - delete() always set the current entity to the parent of the
                   deleted entity.

* bug 3980 fixed - Wrong line number in error message

* bug 3992 fixed - Some invalid dependencies on external libraries removed.

* bug 4030 fixed - unix_w('dir /s') could display strange matrix on Windows.

* bug 4090 fixed - Draw did not work any more while inside drawlater/drawnow scope.

* bug 4101 fixed - -ns option was not clearly explaining that it is 
                    disabling many Scilab features

* bug 4110 fixed - Demos order were different between Linux and Windows versions

* bug 4181 fixed - AdCommunications help page removed

* bug 4184 fixed - Style of the examples corrected

* bug 4217 fixed - gsort sorted complex by magnitude only with 'g' and not support 'r', 'c', 'lr', 'lc'

* bug 4222 fixed - Documentation page on fromc and fromjava added

* bug 4232 fixed - Problem in the Java detection with GNU/Linux under
                    PowerPC fixed

* bug 4262 fixed - Lines returned incorrect values.

* bug 4263 fixed - Completion cleaned current input line.

* bug 4267 fixed - A non-initialization of a lock under Netbsd was 
                   causing an error on startup
                   
* bug 4277 fixed - Force UTF8 management in pcre processing.

* bug 4278 fixed - typename() called with a wrong number of input arguments returned incoherent errors.

* bug 4298 fixed - ilib_for_link failed with lcc-win32 (Windows).

* bug 4304 fixed - Fail to build with ./configure --without-gui

* bug 4307 fixed - Desactivate (in modules.xml) modules if their functionnalities
                   are not available.
                   
* bug 4307 fixed - Help file for %io added                  

* bug 4330 fixed - stacksize('max') + stacksize(required_mem) did not work

* bug 4347 fixed - messagebox(): buttons were displayed in reverse order with 
                   respect to their order in the vector specifying them (Windows).

* bug 4351 fixed - Test about 'exit' did not work on Linux.

* bug 4358 fixed - Changing defaultstacksize in scilab.start did not work

* bug 4360 fixed - The reference of bug_3954.tst was missing

* bug 4364 fixed - stacksize('max') + stacksize(required_mem) did not work

* bug 4365 fixed - Completion failed on a wrong path

* bug 4369 fixed - Help for text_properties: For the clip_state attribut,
                   the second possible value was 'clipgrf' instead of 'cliprf'

* bug 4378 fixed - The gamma function did not work properly with large numbers under Linux 64 bits

* bug 4379 fixed - If the thickness property (of plot3d for example) was set to 0,
                   the lines/edges could disappear

* bug 4380 fixed - diary(0) without an initialization of diary crashed Scilab

* bug 4380 fixed - Help page of the printf command had a problem

* bug 4380 fixed - Merror error codes documented

* bug 4385 fixed - the param3d_properties page has been removed, but a lot of
                   links to this page existed in the documentation.

* bug 4386 fixed - Dynamic link: link('show') displayed only one library if
                   we had only one symbol.

* bug 4391 fixed - make install-html (when the option --with-install-help-xml
                   was added to the configure) was not installing MathML sources

* bug 4394 fixed - 'origin' as position for X and Y axes added

* bug 4395 fixed - Incorrect descriptions of the axesflag and nax parameters
                   in the plot2d help page.

* bug 4396 fixed - In Plot2d, the nax option could receive -1 for number of ticks, which meant autoticks

* bug 4403 fixed - ieeefp.h was not included under Solaris in evaluate_expr.c
                   isinf was defined (when not provided by the system) with a return

* bug 4407 fixed - Help file scilab_xx_XX_help.jar had another scilab_xx_XX_help.jar embedded
                   and not valid.

* bug 4409 fixed - Fortran optim subroutines used fwrite (fortran) and not basout as
                   standard output

* bug 4414 fixed - Complex grayplots were not saved correctly in Scilab 5.1

* bug 4421 fixed - Completion failed on some relative path.

* bug 4426 fixed - uigetfile() - File name was cut when we were in the root directory.

* bug 4428 fixed - Function compute_initial_temp could not handle functions with
                    several arguments

* bug 4429 fixed - Use hidden_axes instead of hidden_axis

* bug 4430 fixed - Incorrect description of the margins property in the axes_properties help page.

* bug 4431 fixed - xsegs() accepted z argument

* bug 4433 fixed - Problem using optim. In some cases, the optim function made Scilab hung.

* bug 4437 fixed - Exporting an empty figure crashed Scilab.

* bug 4438 fixed - Completion did not support insert mode.

* bug 4439 fixed - Unexpected complex conjugates when using cat.

* bug 4459 fixed - grayplot did not always plot map containing %nan.

* bug 4461 fixed - Redefined prompt not displayed in a diary.

* bug 4463 fixed - Creating an one-colored Sgrayplot generated some exceptions
                   and did not plot anything.

* bug 4466 fixed - .' operator defined for strings and booleans

* bug 4467 fixed - getshortpathname,getlongpathname did not manage string matrix as input

* bug 4468 fixed - pathconvert(<path>,%F) could remove last trailing separator.

* bug 4469 fixed - getmd5() & mopen hung if there were called with an existing
                    directory as input argument and not a filename (Linux)

* bug 4474 fixed - Help of 'fort' was obsolete.

* bug 4474 fixed - addinter help had no example.

* bug 4479 fixed - A few minor bugs were causing the configure to fail under
                   FreeBSD (Thanks to Otacílio de Araújo Ramos Neto)

* bug 4483 fixed - Handle FreeBSD Java detection

* bug 4486 fixed - When a file had been opened for execution with "File/Execute..."
                   menu, its pathname was lost.

* bug 4489 fixed - oldsave and oldload removed.

* bug 4491 fixed - get() with wrong argument causes EXCEPTION_ACCESS_VIOLATION error.

* bug 4492 fixed - output_stream_gateway.xml was not include in Windows binary.

* bug 4495 fixed - exec did not check second and third input arguments.

* bug 4496 fixed - in tbx_build_gateway help page, ismex parameter was not documented.

* bug 4497 fixed - xmltoformat got stuck in directories beginning with '.'.

* bug 4498 fixed - merror() returned weird strings if called before opening files.

* bug 4499 fixed - basename returned a wrong value if file or a directory started with a dot

* bug 4500 fixed - basename('') returned a error

* bug 4501 fixed - mput() no more allowed integer types as first input argument.

* bug 4507 fixed - Depending on the Fortran runtime libraries a dummy main
                   definition was needed.

* bug 4514 fixed - valgrind.supp was not installed

* bug 4515 fixed - Linking and loading some external functions already used crashed Scilab

* bug 4516 fixed - ilib_for_link did not use ilib_gen_loader but an internal function.

* bug 4518 fixed - ilib_build with a column vector of strings as filenames did not work on Linux

* bug 4522 fixed - The Tcl interpreter initialization code made use of some uninitialized variables

* bug 4525 fixed - scilab.sln and scilab_f2c.sln did not apply same dependencies on libraries (Windows)

* bug 4528 fixed - makefile (Windows) generated by ilib_for_link forced to rebuild all files each time

* bug 4530 fixed - Leg labels curves were in reverse order

* bug 4533 fixed - Link failed on some path (Windows)

* bug 4539 fixed - Some optional parameters were not set in hist3d

* bug 4542 fixed - Unexpected interpretor warning 

* bug 4546 fixed - Error message added for linpro function (moved to an external function)
 
* bug 4547 fixed - Examples of javasci with graphics were no more interactive

* bug 4548 fixed - With Intel Fortran, file unit opened in a external dll were not shared

* bug 4551 fixed - Menus could return an error in GUI mode (error 2 Invalid factor)

* bug 4552 fixed - c++ comments in stack3.h had been translated into c comments

* bug 4564 fixed - Unable to edit matrices using x_mdialog function

* bug 4573 fixed - core.start tried to load add_module_help_chapter even if it did not exist

* bug 4574 fixed - ilib_build did not check if library was already loaded in Scilab

* bug 4580 fixed - rpem documentation made more accurate

* bug 4584 fixed - Under Windows, home value was wrong

* bug 4585 fixed - Scilab failed to build with Intel C++ compiler 11.0.074 on Windows

* bug 4586 fixed - Function fieldnames added for getting tlist, mlist and struct field names (see SEP #28)

* bug 4592 fixed - The ged entity picker produced an error if a menu had been
                   added to the graphic window

* bug 4596 fixed - g_margin failed to return the gain margins in some cases

* bug 4600 fixed - Missing function inside lgfft (lgfft needed be removed)

* bug 4601 fixed - Hidden functions and missing help for vec2list list2vec aplat and recons

* bug 4603 fixed - Unknown function lst2tree called by function mtlb_eval
                   (+ some other problems fixed in mtlb_eval)

* bug 4604 fixed - rmdir(<dir>,"s") did not work if it contained a hidden file
                   (starting with a dot)

* bug 4605 fixed - basename('') returned a error

* bug 4606 fixed - Example of 'link' in help did not work

* bug 4608 fixed - get_function_path returned a non-consistent path

* bug 4611 fixed - what function did not return a complete list of functions

* bug 4612 fixed - The graphic export used to consider .jpeg as an invalid
                   extension

* bug 4614 fixed - On some (rare) archs/OS, File -> Export on a graphic could
                    led to a crash 

* bug 4615 fixed - xs2jpg(0, '/tmp/myplop.jpeg'); was creating a file 
                   called /tmp/myplop.jpeg.jpg (Thanks to Guilherme 
                   Kunigami for the fix)

* bug 4616 fixed - Text strings in SVG output were not rotated. Thanks 
                   to Paul Griffiths for the patch!

* bug 4618 fixed - buttmag produced a warning because of redefining symbol sample

* bug 4620 fixed - the setenv function made scilab hung.

* bug 4626 fixed - When using the CLI version, completion made Scilab crashed

* bug 4627 fixed - The function matfile2sci did not manage 7.x format

* bug 4630 fixed - Problem with the Xcos/Scicos block affich

* bug 4635 fixed - Bad title in the French help of the graphic module

* bug 4636 fixed - Metanet on-line help: an accent was missing on the "e" in the French version 

* bug 4638 fixed - This example with optim freezed Scilab

* bug 4639 fixed - Some graphics demos did not contain the menu item "show code"

* bug 4641 fixed - The parameter Q of the function derivative was not clear

* bug 4645 fixed - French 'gsort' help had some wrong information

* bug 4646 fixed - Assigning a string to an element of a matrix of numbers did not give an error

* bug 4650 fixed - SCI/modules/graphics/macros/Sfgrayplot.sci had not been modified for localization

* bug 4654 fixed - Max of an empty sparse matrix made Scilab hung

* bug 4656 fixed - part(input_matrix,[]) always returned a single string even if
                   input_matrix had a several dimensions

* bug 4658 fixed - For graphics macros from adddcolor to getfont and all colormap

* bug 4666 fixed - SCIHOME was not well defined if Scilab had been launched in another Scilab session

* bug 4676 fixed - diary() removed whitespaces characters from the output of mprintf()

* bug 4683 fixed - There was no example of the use of tlist in the dedicated page

* bug 4684 fixed - printf(), mprintf, msprintf did not properly deal with -%inf

* bug 4688 fixed - listfiles("/") returned an error

* bug 4689 fixed - diary() did not report interactive commands into the output file

* bug 4695 fixed - Some help pages + examples were missing in the arnoldi package

* bug 4702 fixed - On some cases, dos(cmd) did not return results

* bug 4707 fixed - Could not save a Xcos/Scicos diagram to a non-existing file under Mac OS

* bug 4709 fixed - The set function with 2 parameters and no handles made Scilab hung

* bug 4710 fixed - Error with C++ interface which uses the function CreateVar

* bug 4712 fixed - By GUI handle affectation produced an error

* bug 4719 fixed - fsolve might failed on some system of equations. An example in the documentation was added

* bug 4724 fixed - When the f variation of a data set was too small, plot hung

* bug 4727 fixed - The function 'length' did not return the same value in Scilab 5.1 and Scilab 4.1.2

* bug 4728 fixed - The function 'strcat' did not return the same value in Scilab 5.1 and Scilab 4.1.2

* bug 4732 fixed - The help page of function ss2ss had some missing part

* bug 4737 fixed - Completion failed on file extension search

* bug 4744 fixed - whereis, librairieslist, libraryinfo primitives moved in "functions" modules

* bug 4750 fixed - Error boolean catenation

* bug 4752 fixed - ci2exp produced erroneous code when applied to boolean matrices (; are missing)

* bug 4753 fixed - If you had a toolbox and you launched scilab-cli, you had an error message at startup

* bug 4759 fixed - Better error message in nlev when called with no input argument provided.

* bug 4770 fixed - modules::renderer::utils::ColorMap::isValidScilabIndex test was wrong

* bug 4773 fixed - Using "axes_reverse" produced a switch between the front and back color of a figure

* bug 4789 fixed - Number of input arguments was not checked in ilib_functions (dynamic_link module)

* bug 4792 fixed - Macro name too long

* bug 4795 fixed - CallScilab.h renamed call_scilab.h

* bug 4797 fixed - macro make_help_index.sci (internal) removed (not used in Scilab 5.x)

* bug 4798 fixed - pathconvert macro rewritten as a primitive (many times used and not faster)

* bug 4807 fixed - strsubst did not check if second argument was a valid patter where fourth argument was 'r'

* bug 4810 fixed - gsort did not manage sparse vectors as sort

* bug 4811 fixed - For some figures, it was not possible to save and load the handle of the figure

* bug 4812 fixed - xs2... function did not work if the first argument was a handle

* bug 4816 fixed - plot did not manage autoclear correctly

* bug 4817 fixed - macro savedefaultbrowser (internal) removed (not used in Scilab 5.x)

* bug 4826 fixed - The type of the 'dims' entry of an hypermat was not always the same

* bug 4828 fixed - Completion cleared the content of some completed path

* bug 4832 fixed - wavread returned a non explicit error if RIFF had some 'smpl' chunck

* bug 4838 fixed - Completion returned wrong value with '..' 

* bug 4846 fixed - mopen("","") crashed on Windows

* bug 4853 fixed - C,C++ dlls generated by Scilab had a dependency on fortran runtime (Windows)

* bug 4855 fixed - Standard error messages added when setting/getting values from graphics handles

* bug 4880 fixed - Query-replace with a regular expression doesn't work in editor

* bug 4904 fixed - wrong localized fr_FR message

* bug 4917 fixed - fileinfo(SCI+'/') returned [] (under Windows)

* bug 4918 fixed - Error message returned by 'get_absolute_file_path' was incorrect

* bug 4925 fixed - Verbose option of the optim function crashed on Windows

* bug 4926 fixed - Could not save a structure in a MAT-file using savematfile

* bug 4927 fixed - When the user tried to plot some data in semilogx or semilogy, a blank plot windows was displayed

* bug 4928 fixed - x_mdialog crashed when more default valued than labels

* bug 4943 fixed - execstr did not check input arguments

* bug 4944 fixed - If the extension is not provided, some functions adds the extension, some others don't.

* bug 4961 fixed - missing some field when printing some graphics Handle

* bug 4964 fixed - set or get 'format_n' property from an axis crashed Scilab

* bug 4966 fixed - execstr([]) return []

* bug 4974 fixed - exec('') crashed Scilab

* bug 4983 fixed - When Scilab was started in nw mode, the addmenu examples were failing with a weird error message

* bug 4991 fixed - No check if there was modification when doing "Execute Into Scilab" in the editor

* bug 4997 fixed - Now Scilab editor and Xcos, ask to save unsaved documents when the users close Scilab.

* bug 5026 fixed - now palette browser appears only with a new diagram or by the menu View->Palette browser.

* bug 5033 fixed - The Demo CACSD / Inverted pendulum was broken.

* bug 5042 fixed - (1|[1,0,1;1,1,0]) returned a wrong result.

* bug 5074 fixed - French help star showed mis-encoded characters.

* bug 5081 fixed - demo "Signal Processing" --> "Spectral Estimation" failed (on Windows)

* bug 5105 fixed - completion: cd "..\L<tab>  did not work.

* bug 5138 fixed - ilib_build: if the "makefile name" argument is an empty matrix, the generated Makefile is ".mak"

* bug 5148 fixed - Setting {x,y,z}_ticks with empty value work.

* bug 5155 fixed - Scilab windows 32 bits version required CPU SSE 2 instructions.

* bug 5158 fixed - Region to SuperBlock now keep links breaks inside and outside SuperBlock

* bug 5160 fixed - When a graphic has exported by the 'File -> export' menu, and did not specify any 'filter', scilab crashed.

* bug 5188 fixed - A function to reopen a parent diagram was added in the pop up menu of the diagram.

* bug 5210 fixed - editor("SCI/etc/scilab.start") freezes Scilab.

* bug 5224 fixed - Maj+Tab modify the text selection.

* bug 5269 fixed - Missing feature in the Text Editor: Ctrl-F1 to open Scilab's help

* bug 5270 fixed - In editor, change the shortcut for the line numbering (CTRL+L) and assign it to "Load into Scilab" in order to match the old behavior.

* bug 5281 fixed - The menu "View->"Palette Browser" is correctly checked at Xcos start.

* bug 5284 fixed - Function "legend" now draws line segments in its box in a corect order.

* bug 5290 fixed - Remove function editorHighlightLine, and update editor in order to have in argument files to open and lines to be highlighted for each files.