MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 652

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 716
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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');
Vue de la page 651
1 2 ... 647 648 649 650 651 652 653 654 655 656 657 ... 715 716

Commentaires sur ces manuels

Pas de commentaire