This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible Bug ???


Hi,

On Wed, Nov 2, 2011 at 12:36 AM, Leon Vanderploeg  wrote:
> Greetings,
>
> This issue is making my head flat from pounding it against the wall. ?It appears to be a bug in Cygwin 1.7, but I can't say with any certainty. ?I've been down too many dead end trails already...
>
> With cygwin 1.7.5, file name with a special characters such as ñ (n with tidle above it) fail be properly extracted from a WIN32_FIND_DATA structure with findFirstFile (or findNextFile).
>
> To set up a simple test scenario, I created a file in C:\Testing named ?Mañana.docx. ?I compiled the code at the end of this message on Cygwin 1.7.9 with GCC version 3.4.4.

Your program does not compile:

$ gcc-3 t.cc
In file included from t.cc:12:
/usr/include/curl/curl.h:126: error: `SOCKET' does not name a type
/usr/include/curl/curl.h:228: error: `curl_socket_t' has not been declared
/usr/include/curl/curl.h:242: error: typedef `curl_socket_t' is
initialized (use __typeof__ instead)
/usr/include/curl/curl.h:242: error: `curl_opensocket_callback' was
not declared in this scope
/usr/include/curl/curl.h:242: error: expected `,' or `;' before '(' token
t.cc: In function `int main(int, char**)':
t.cc:111: error: `wcslen' undeclared (first use this function)
t.cc:111: error: (Each undeclared identifier is reported only once for
each function it appears in.)

$ gcc-3 -mno-cygwin t.cc
t.cc:12:23: curl/curl.h: No such file or directory
t.cc:16:22: sys/wait.h: No such file or directory
t.cc:17:25: cygwin/wait.h: No such file or directory
t.cc: In function `int main(int, char**)':
t.cc:111: error: cannot convert `char*' to `const wchar_t*' for
argument `1' to `size_t wcslen(const wchar_t*)'

You are mixing narrow and wide strings. This will not work.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]