[previous] MISRA-C:2004  Rule  3.2:  (Required) [next] The character set and the corresponding encoding shall be documented.
For example, ISO 10646-1 [22] defines an international standard for mapping character sets to numeric values. For portability, "character-constants" and "string-literals" should only contain characters that map to a documented subset. The source code is written in one, or more character sets. Optionally, the program can execute in a second or multiple character sets. All the source and execution character sets shall be documented.

Example Code:


#include "misra.h"
#include "m2cmex.h"

extern S16 test_0302( void )
{
   return 0;
}


No QAC messages cover this rule.



(c) The Motor Industry Research Association, 2004
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents