Groups | Search | Server Info | Login | Register
Groups > perl.wxperl.users > #98
| Newsgroups | perl.wxperl.users |
|---|---|
| Date | 2025-01-13 22:45 +0100 |
| Subject | Doubleclick and @ARGV |
| Message-ID | <20250113224522.5aaf1b0e@phoenix.squirrel.nl> (permalink) |
| Organization | Squirrel Consultancy |
| From | jvromans@squirrel.nl (Johan Vromans) |
A question for Windows experts.
I have installed a wxPerl application and associated it with files with
extension '.cho'.
When I doubleclick in the Explorer on such a file, my program is started
and gets the name of the file passed via @ARGV. Well, more or less...
I have a folder (on an NTFS filesystem) with three files:
asciiname.cho
namewitháccent.cho
namewith♡unicode.cho
From within the program, I can open the file if I dclick the first and the
second name, but not the third name.
What **exactly** is passed in @ARGV when I dclick these files?
Since the filesystem is NTFS, I would expect a filename in UTF-16LE but
when I dump the content of @ARGV (using charnames to avoid encoding issues)
I get
"asciiname.cho" -- apparently ASCII
"namewith\N{LATIN SMALL LETTER WITH ACUTE}ccent.cho" -- apparently UTF8
"namewith?unicode.cho" -- ????
Anyone have an idea what I'm doing wrong?
Back to perl.wxperl.users | Previous | Next — Next in thread | Find similar
Doubleclick and @ARGV jvromans@squirrel.nl (Johan Vromans) - 2025-01-13 22:45 +0100
Re: Doubleclick and @ARGV jvromans@squirrel.nl (Johan Vromans) - 2025-01-14 17:16 +0100
Re: Doubleclick and @ARGV jvromans@squirrel.nl (Johan Vromans) - 2025-01-14 18:04 +0100
Re: Doubleclick and @ARGV jvromans@squirrel.nl (Johan Vromans) - 2025-01-14 21:46 +0100
csiph-web