[Lsb-infrastructure] [Bug 2214] New: Add recommendations for btowc and mbtowc

bugzilla-daemon at linux-foundation.org bugzilla-daemon at linux-foundation.org
Wed Jul 9 02:12:53 PDT 2008


http://bugs.linuxbase.org/show_bug.cgi?id=2214

           Summary: Add recommendations for btowc and mbtowc
           Product: Infrastructure
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Database
        AssignedTo: mats at freestandards.org
        ReportedBy: silakov at ispras.ru
         QAContact: lsb-infrastructure at freestandards.org


Created an attachment (id=1119)
 --> (http://bugs.linuxbase.org/attachment.cgi?id=1119)
SQL to add recommendations

LSB follows POSIX and C99 and includes btowc and mbtowc functions However, man
btowc says:

This function should never be used. It does not work for encodings which have
state, and unnecessarily treats single bytes differently from multibyte
sequences. Use the function mbtowc() instead. 

Man mbtowc says, in turn:

This function is not multi-thread safe. The function mbrtowc() provides a
better interface to the same functionality.

We suggest to add these wordings as a recommendations with a suggestion to use
mbrtowc in both cases.


-- 
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the lsb-infrastructure mailing list