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

Incorrect line wrapping when test case name is consisted by non-ascii characters #1022

Open
msh5 opened this issue Sep 13, 2017 · 0 comments

Comments

@msh5
Copy link

msh5 commented Sep 13, 2017

Description

This is an enhancement request.
I want to use UTF-8 non-ascii characters as test case name,
but Catch reporting system is seems not to support them on line wrapping.
Here is output when bug reproducts.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main is a Catch v1.10.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
_「ではみなさんは、そういうふうに川だと言われたり、�-
�の流れたあとだと言われたりしていた、このぼんやりと�-
�いものがほんとうは何かご承知ですか」
-------------------------------------------------------------------------------
main.cpp:4
...............................................................................

main.cpp:5: FAILED:
  REQUIRE( 0 )

===============================================================================
test cases: 1 | 1 failed
assertions: 1 | 1 failed

Steps to reproduce

Here is a minimum program to reproduce.
"_" at heading of test case name is needed to reproduce.

#define CATCH_CONFIG_MAIN  // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"

TEST_CASE( "_「ではみなさんは、そういうふうに川だと言われたり、乳の流れたあとだと言われたりしていた、このぼんやりと白いものがほんとうは何かご承知ですか」" ) {
    REQUIRE( 0 );
}

Extra information

  • Catch version: v1.10.0
  • Operating System: CentOS 7
  • Compiler+version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
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

1 participant