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

wcscasecmp is not always available on Linux #470

Open
GoogleCodeExporter opened this issue Jun 20, 2015 · 0 comments
Open

wcscasecmp is not always available on Linux #470

GoogleCodeExporter opened this issue Jun 20, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Compile on Linux platform that does not have wcscasecmp()

What is the expected output? What do you see instead?

It should build, e.g. by invoking the fallback clause after 
https://code.google.com/p/googletest/source/browse/trunk/src/gtest.cc#1894. 
Instead, it doesn't.

What version of Google Test are you using? On what operating system?

1.7.0. Various HPC or embedded platforms.

Please provide any additional information below, such as a code snippet.

The only all-purpose solution is a configure-time feature test for 
wcscasecmp(), but amending line 
https://code.google.com/p/googletest/source/browse/trunk/src/gtest.cc#1894 to 
read

  #elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID && !GTEST_NO_WCSCASECMP

would give people the option to work around this limitation in their build 
system.

Original issue reported on code.google.com by [email protected] on 10 Aug 2014 at 12:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant