[ragel-users] utf-8 files problem
Adrian Thurston
thurston at complang.org
Thu Sep 8 21:26:29 UTC 2011
Thanks, noted.
http://www.complang.org/redmine/issues/320
On 09/07/11 23:05, Denis Naumov wrote:
> I found some problem with generated files on Windows platform.
> if *.rl file is utf-8 file with signature (first 2 bytes EF BB).
>
> Example:
> input file lexer.rl
> ----- START ---------------
> //=== this is first line (comment)
> ... // other lines
> ----- END ---------------
>
> output file lexer.cs
> ----- START ---------------
> /* #line 1 "lexer.rl" */
> ?//=== this is first line (comment)
> ... // other lines
> ----- END ---------------
>
> ragel puts /* #line 1 "lexer.rl" */ comment before utf-8 signature at
> the begining of file and this is wrong utf-8 file.
>
> And second - if we disable #line generation with option -L, you remove
> generation /* #line */ - not just comment this lines.
>
> Best regards,
> Denis Naumov.
>
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list