comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » file_search problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: file_search problem [message #92353 is a reply to message #92352] Wed, 25 November 2015 07:45 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Wednesday, November 25, 2015 at 2:09:56 AM UTC-7, greg...@googlemail.com wrote:
> I have a directory (on Windows7) containing some filenames with Romanian special characters, e.g.
>
> ă.txt
> în.txt
>
>
> The OS 'dir' command shows them...
>
> 25/11/2015 09:41 <DIR> .
> 25/11/2015 09:41 <DIR> ..
> 25/11/2015 09:31 0 în.txt
> 25/11/2015 09:31 0 ă.txt
> 2 File(s) 0 bytes
> 2 Dir(s) 1,043,905,544,192 bytes free
>
>
> file_search(path,"*.txt") returns the file with the 'î' but doesn't see the file with 'ă' at all.
>
>
> cheers,
> Greg

A work-around is to use the old FINDFILE function, but you should report this to support at exelisvis.com.

A substantial amount of work was put into I18N a few releases ago, but it looks like this is a special case.

Interesting...

IDL> print, byte('î')
238
IDL> print, string(238b)
î

...however,

IDL> print, byte('ă')
97
IDL> print, string(97b)
a

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compare non-linear function fit parameters of two data sets
Next Topic: EXTRACT_SLICE

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:59:43 PDT 2025

Total time taken to generate the page: 0.00255 seconds