MATLAB COMPILER RELEASE NOTES Guía de usuario Pagina 652

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 716
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 651
R2006a
22-22
You can, but do not have to, remove the calls to native2unicode in V7.2 (R2006a):
indata = fread(fid, '*char')';
indata = fread(fid, 'char=>char')';
indata = fgets(fid);
indata = fgetl(fid);
indata = fscanf(fid, '%s');
indata = fscanf(fid, '%c');
Changes to code using fwrite
If your code calls unicode2native to convert output from MATLAB characters using
a specified (or default) encoding scheme, in most cases you must remove the calls to
unicode2native. This is especially important if the encoding represents multibyte
characters.
This applies to writing an encoded file using fwrite with precision set to either
'char' or 'char*1'.
When you remove a call to unicode2native, be sure that the call to fopen supplies the
same encoding argument (if any) as the call to unicode2native.
You may have used code like these examples in V7.1 (R14SP3):
fwrite(fid, unicode2native(outbuff), 'char');
fwrite(fid, unicode2native(outbuff), 'char*1');
You must remove the calls to unicode2native in V7.2 (R2006a):
fwrite(fid, outbuff, 'char');
fwrite(fid, outbuff, 'char*1');
Vista de pagina 651
1 2 ... 647 648 649 650 651 652 653 654 655 656 657 ... 715 716

Comentarios a estos manuales

Sin comentarios