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

can't make tests: error: universal character name refers to a control character #275

Closed
ajbeach2 opened this Issue Dec 10, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@ajbeach2
Copy link

commented Dec 10, 2014

I can't get the DENABLE_TESTS=ON option to make the tests. I am getting

error: universal character name refers to a control character

I am also using ncursesw version 5.9

I am using yosemite if that makes a difference and it seems that these errors only happen when compiling with AppleClang 6.0.0.6000056, I do not get these errors when compiling with g++ 4.9.2

Alexadners-MacBook-Air:build abeach$ cmake .. -DPREFIX=~/Workspace/weechat -DENABLE_TESTS=ON
-- checking for one of the modules 'ruby-2.1;ruby-2.0;ruby-1.9;ruby-1.8'
-- checking for one of the modules 'lua5.2;lua-5.2;lua52;lua5.1;lua-5.1;lua51;lua-5.0;lua5.0;lua50;lua'
-- checking for one of the modules 'guile-2.0'
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/abeach/Workspace/weechat/build
Alexadners-MacBook-Air:build abeach$ make
File config-git.h is up-to-date (git version: "v1.0-271-g1f1611c")
[  0%] Built target version_git
[ 16%] Built target weechat_core
[ 18%] Built target weechat_plugins
[ 20%] Built target weechat_plugins_scripts
[ 21%] Built target alias
[ 22%] Built target charset
[ 25%] Built target exec
[ 26%] Built target fifo
[ 41%] Built target irc
[ 44%] Built target logger
[ 54%] Built target relay
[ 59%] Built target script
[ 60%] Built target perl
[ 62%] Built target python
[ 63%] Built target ruby
[ 65%] Built target tcl
[ 69%] Built target trigger
[ 76%] Built target xfer
[ 87%] Built target weechat_gui_common
[ 92%] Built target weechat_gui_curses
[ 93%] Built target weechat
[ 94%] Building CXX object tests/CMakeFiles/weechat_unit_tests.dir/unit/core/test-string.o
/Users/abeach/Workspace/weechat/tests/unit/core/test-string.cpp:408:19: error: universal character name refers to a control character
    WEE_TEST_STR("\u0012zz", string_convert_escaped_chars ("\\u12zz"));
                  ^~~~~~
/Users/abeach/Workspace/weechat/tests/tests.h:25:9: note: expanded from macro 'WEE_TEST_STR'
    if (__result == NULL)                                               \
        ^
/Users/abeach/Workspace/weechat/tests/unit/core/test-string.cpp:408:19: error: universal character name refers to a control character
    WEE_TEST_STR("\u0012zz", string_convert_escaped_chars ("\\u12zz"));
                  ^~~~~~
/Users/abeach/Workspace/weechat/tests/tests.h:31:22: note: expanded from macro 'WEE_TEST_STR'
        STRCMP_EQUAL(__result, str);                                    \
                     ^
/usr/local/Cellar/cpputest/3.6/include/CppUTest/UtestMacros.h:134:25: note: expanded from macro 'STRCMP_EQUAL'
  STRCMP_EQUAL_LOCATION(expected, actual, __FILE__, __LINE__)
                        ^
/usr/local/Cellar/cpputest/3.6/include/CppUTest/UtestMacros.h:137:47: note: expanded from macro 'STRCMP_EQUAL_LOCATION'
  { UtestShell::getCurrent()->assertCstrEqual(expected, actual, file, line); }
                                              ^
/Users/abeach/Workspace/weechat/tests/unit/core/test-string.cpp:409:19: error: invalid universal character
    WEE_TEST_STR("\U00123456", string_convert_escaped_chars ("\\U00123456"));
                  ^~~~~~~~~~
/Users/abeach/Workspace/weechat/tests/tests.h:25:9: note: expanded from macro 'WEE_TEST_STR'
    if (__result == NULL)                                               \
        ^
/Users/abeach/Workspace/weechat/tests/unit/core/test-string.cpp:409:19: error: invalid universal character
    WEE_TEST_STR("\U00123456", string_convert_escaped_chars ("\\U00123456"));
                  ^~~~~~~~~~
/Users/abeach/Workspace/weechat/tests/tests.h:31:22: note: expanded from macro 'WEE_TEST_STR'
        STRCMP_EQUAL(__result, str);                                    \
                     ^
/usr/local/Cellar/cpputest/3.6/include/CppUTest/UtestMacros.h:134:25: note: expanded from macro 'STRCMP_EQUAL'
  STRCMP_EQUAL_LOCATION(expected, actual, __FILE__, __LINE__)
                        ^
/usr/local/Cellar/cpputest/3.6/include/CppUTest/UtestMacros.h:137:47: note: expanded from macro 'STRCMP_EQUAL_LOCATION'
  { UtestShell::getCurrent()->assertCstrEqual(expected, actual, file, line); }
                                              ^
4 errors generated.
make[2]: *** [tests/CMakeFiles/weechat_unit_tests.dir/unit/core/test-string.o] Error 1
make[1]: *** [tests/CMakeFiles/weechat_unit_tests.dir/all] Error 2
make: *** [all] Error 2

@ajbeach2 ajbeach2 closed this Dec 10, 2014

@ajbeach2 ajbeach2 reopened this Dec 10, 2014

@flashcode flashcode closed this in 7818e08 Dec 10, 2014

@flashcode flashcode added the bug label Dec 10, 2014

@flashcode flashcode added this to the 1.1 milestone Dec 10, 2014

@flashcode flashcode self-assigned this Dec 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.