Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testcases print warnings #63

Closed
yurivict opened this issue Jul 2, 2017 · 2 comments
Closed

testcases print warnings #63

yurivict opened this issue Jul 2, 2017 · 2 comments

Comments

@yurivict
Copy link

yurivict commented Jul 2, 2017

testc.c:857:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
  x2("a<b><A5>С<BC><A5><B8><A5><E7><A5><F3><A4>Υ<C0><A5><A6><A5><F3><A5><ED><A1><BC><A5><C9><\\/b>", "a<b><A5>С<BC><A5><B8><A5><E7><A5><F3><A4>Υ<C0><A5><A6><A5><F3><A5><ED><A1><BC>...
          ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testc.c:857:49: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
  ..."a<b><A5>С<BC><A5><B8><A5><E7><A5><F3><A4>Υ<C0><A5><A6><A5><F3><A5><ED><A1><BC><A5><C9></b>", 0, 32);
          ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testc.c:858:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
  x2(".<b><A5>С<BC><A5><B8><A5><E7><A5><F3><A4>Υ<C0><A5><A6><A5><F3><A5><ED><A1><BC><A5><C9><\\/b>", "a<b><A5>С<BC><A5><B8><A5><E7><A5><F3><A4>Υ<C0><A5><A6><A5><F3><A5><ED><A1><BC>...
          ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testc.c:858:49: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
  ..."a<b><A5>С<BC><A5><B8><A5><E7><A5><F3><A4>Υ<C0><A5><A6><A5><F3><A5><ED><A1><BC><A5><C9></b>", 0, 32);
          ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
507 warnings generated.

Found on FreeBSD 11.

kkos pushed a commit that referenced this issue Jul 3, 2017
@kkos
Copy link
Owner

kkos commented Jul 3, 2017

I think that it is probably caused by Japanese character code EUC_JP.
A good countermeasure was not found.
Please add IGNORE_EUC_JP flag to CFLAGS from version 6.4.0.
$ make CFLAGS="-O2 -DIGNORE_EUC_JP" test

@yurivict
Copy link
Author

yurivict commented Jul 3, 2017

Ok, thanks, this helped.

@yurivict yurivict closed this as completed Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants