This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271177 - Whitespace character 0xB causes unexpected char in .c file even though it is a valid whitespace char according to the C standard
Summary: Whitespace character 0xB causes unexpected char in .c file even though it is ...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-27 07:11 UTC by fisman
Modified: 2017-08-04 15:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
main.c file to reproduce the error, just add this to a C or C++ project (443 bytes, application/octet-stream)
2017-07-27 07:11 UTC, fisman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fisman 2017-07-27 07:11:48 UTC
Created attachment 164842 [details]
main.c file to reproduce the error, just add this to a C or C++ project

Section 5.2.1 of the C99 standard defines the character set. In this section "vertical tab" is called out explicitly as a whitespace character which the compiler shall ignore.

The file I attach has such a character (it is in main the character between the open bracket and the E of EXIT_SUCCESS on this line :

return (EXIT_SUCCESS);


When the character exists I get red underlines for all function names in the file and the IDE log reports this error :

/CppApplication_1/main.c:8:13: unexpected char: 0xB

As far as I understand the standard the character 0xB should be ignored as whitespace by the Lexer and not produce this error.