[Home]

Summary:ASTERISK-10531: ASCII Chars >127 not handled correctly if put at the begin or the end of the config item
Reporter:Daniel ANDRE (dandre)Labels:
Date Opened:2007-10-15 08:29:29Date Closed:2007-10-15 11:16:07
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:if a char > 127 is put at the begin or the end of a configuration item, for instance like :
fullname = Daniel André

then this char is silently removed by ast_skip_blanks or ast_trim_blanks as it is allways considered < 33 because it is declared as char.

I would consider putting unsigned char instead of char in those two functions.
Comments:By: Digium Subversion (svnbot) 2007-10-15 11:13:31

Repository: asterisk
Revision: 85561

U   branches/1.4/include/asterisk/strings.h

------------------------------------------------------------------------
r85561 | russell | 2007-10-15 11:13:30 -0500 (Mon, 15 Oct 2007) | 4 lines

Make a few changes so that characters in the upper half of the ISO-8859-1
character set don't get stripped when reading configuration.
(closes issue ASTERISK-10531, dandre)

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-10-15 11:16:07

Repository: asterisk
Revision: 85562

_U  trunk/
U   trunk/include/asterisk/strings.h

------------------------------------------------------------------------
r85562 | russell | 2007-10-15 11:16:06 -0500 (Mon, 15 Oct 2007) | 12 lines

Merged revisions 85561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85561 | russell | 2007-10-15 11:34:13 -0500 (Mon, 15 Oct 2007) | 4 lines

Make a few changes so that characters in the upper half of the ISO-8859-1
character set don't get stripped when reading configuration.
(closes issue ASTERISK-10531, dandre)

........

------------------------------------------------------------------------