Skip to content

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

Closed

Description

@msh5

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)

Activity

  1. added a commit that references this issue on Mar 28, 2026
    1e14c3a
  2. added a commit that references this issue on Apr 1, 2026
    572f96b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions