Merge branch 'jt/doc-use-octal-with-printf' into next
Suggest to refrain from using hex literals that are non-portable when writing printf(1) format strings. * jt/doc-use-octal-with-printf: CodingGuidelines: use octal escapes, not hex
This commit is contained in:
@ -188,6 +188,10 @@ For shell scripts specifically (not exhaustive):
|
||||
hopefully nobody starts using "local" before they are reimplemented
|
||||
in C ;-)
|
||||
|
||||
- Use octal escape sequences (e.g. "\302\242"), not hexadecimal (e.g.
|
||||
"\xc2\xa2") in printf format strings, since hexadecimal escape
|
||||
sequences are not portable.
|
||||
|
||||
|
||||
For C programs:
|
||||
|
||||
|
Reference in New Issue
Block a user