googletest icon indicating copy to clipboard operation
googletest copied to clipboard

FIX #3659 -- Use `__cpp_lib_char8_t` macro to support `UTF-8` code units

Open joshiayush opened this issue 3 years ago • 6 comments

Since __cpp_char8_t does not guarantee to represent UTF-8 code units we should use __cpp_lib_char8_t macro instead to support UTF-8 code units otherwise use of __cpp_char8_t will lead to build failure.

Fixes https://github.com/google/googletest/issues/3659

For reference see.

Signed-off-by: Ayush Joshi [email protected]

joshiayush avatar Dec 30 '21 06:12 joshiayush

@derekmauro Sorry my previous commit https://github.com/google/googletest/pull/3703 was directly on the main branch of my fork and I did not realise it 😅, yes I know I sound stupid.

joshiayush avatar Dec 30 '21 06:12 joshiayush

@MikeChan-HK Like my previous PR https://github.com/google/googletest/pull/3703 this one again didn't pass Windows, please guide me I'm not familiar with gmock yet. The reason why I asked you is because you approved PR https://github.com/google/googletest/pull/3703 regardless of the failing action.

joshiayush avatar Dec 30 '21 06:12 joshiayush

@dinord Hey is this PR even visible from your end or I'm stuck in some kind of parallel earth? I'm not sure but in case you see this don't forget to drop a review from your side down here.

joshiayush avatar Jan 12 '22 05:01 joshiayush

This is failing on windows, and the reason seems to be that it's inserting \r before each \n, causing the output to be different from the golden file. Is this change fit for Windows?

CJ-Johnson avatar Mar 22 '22 19:03 CJ-Johnson

This is failing on windows, and the reason seems to be that it's inserting \r before each \n, causing the output to be different from the golden file. Is this change fit for Windows?

Yes, that's how Windows define a line feed. What should be done in this case?

joshiayush avatar Mar 23 '22 04:03 joshiayush

@dinord Take a look at this

joshiayush avatar May 03 '22 02:05 joshiayush

What happened to this PR and why didn't it get reviewed?

connoranderson avatar Jun 29 '23 04:06 connoranderson