File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212-- See the License for the specific language governing permissions and
1313-- limitations under the License.
1414
15- with Ada.Characters.Handling ;
1615with Ada.Characters.Latin_1 ;
1716with Ada.IO_Exceptions ;
1817with Ada.Strings.Bounded ;
@@ -28,6 +27,7 @@ package body JSON.Tokenizers is
2827 Escaped : Boolean := False;
2928
3029 use type Streams.AS.Stream_Element_Offset;
30+ use Ada.Characters.Latin_1;
3131 begin
3232 loop
3333 C := Stream.Read_Character (Index);
@@ -49,7 +49,7 @@ package body JSON.Tokenizers is
4949 end case ;
5050 elsif C /= ' \' then
5151 -- Check C is not a control character
52- if Ada.Characters.Handling.Is_Control (C) then
52+ if C in NUL .. US then
5353 raise Tokenizer_Error with " Unexpected control character in string" ;
5454 end if ;
5555 end if ;
You can’t perform that action at this time.
0 commit comments