X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <0ed501cc98ef$21fbd660$65f38320$@vaultnow.com> References: <0ed501cc98ef$21fbd660$65f38320$@vaultnow.com> Date: Wed, 2 Nov 2011 09:47:24 +0100 Message-ID: Subject: Re: Possible Bug ??? From: Csaba Raduly To: cygwin AT cygwin DOT com, leonv AT vaultnow DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pA28lkTq018166 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