Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8593

wofstream << operator unexpected termination with wchar_t

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-4032
    • Hide
      ARM_18.1.0.LTS
      ARM_18.12.0.LTS
      ARM_20.2.0.LTS
      Show
      ARM_18.1.0.LTS ARM_18.12.0.LTS ARM_20.2.0.LTS

      wofstream << operator unexpected termination. Test case sets up a wofstream object associated with an output file. When writing a wchar_t character out to the file via a '<<' operator, app terminates unexpectedly.

      Relevant code:
      std::wofstream out00;
      out00.imbue(Clocale);
      out00.setf(std::ios_base::unitbuf);
      out00.exceptions(exception_states);

      wchar_t u00 = 0x50;

      try

      { out00.open(fn00, std::ios_base::out|std::ios_base::binary|std::ios_base::ate); for (int i=0; i<6; i++) out00 << u00++; out00.close(); }

      catch (...)

      { uninitiated("Output threw an exception."); }

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: