delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Mon, 01 Mar 2010 21:35:52 +1000 |
From: | Jason Hood <jadoxa AT yahoo DOT com DOT au> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Bug in findfirst/findnext: mangles certain characters. |
References: | <2PydnQe72P4H_BrWnZ2dnUVZ_vmdnZ2d AT giganews DOT com> <hmbvg7$ieq$1 AT speranza DOT aioe DOT org> <Br-dnQ3aTcaMsRfWnZ2dnUVZ_uSdnZ2d AT giganews DOT com> |
In-Reply-To: | <Br-dnQ3aTcaMsRfWnZ2dnUVZ_uSdnZ2d@giganews.com> |
NNTP-Posting-Host: | $$5ennlldnsg.news.x-privat.org |
Message-ID: | <4b8ba6a1@news.x-privat.org> |
Organization: | X-Privat.Org NNTP Server - http://www.x-privat.org |
Lines: | 13 |
X-Authenticated-User: | $$np02fmijtvj-bfao$k3 |
X-Complaints-To: | abuse AT x-privat DOT org |
Bytes: | 1606 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On 28/02/2010 18:43, Robbie Hatley wrote: > Try renaming THAT file using findfirst/findnext and rename(). > It won't work. (Findfirst will turn "Ěn-Ít" to "In-It", > for one thing. rename() will then complain "no such file".) The problem is not with findfirst, but with Windows. It is /Windows/ that is renaming the file, so there is nothing that findfirst can do. The same problem even happens with Win32 console programs, when switching the file APIs to OEM. The ideal solution is to use a Windows Unicode program, so you might want to have a look at MinGW. Jason.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |