jdtoronto has asked for the wisdom of the Perl Monks concerning the following question:

I am using ActiveState PerlApp to package a Win32 application.

Today I have found a situation with a Swedish user where he has an accented character in his username. Several programmatic manipulations of files using directory names fomr the environment were successful. But as you can see in this error message:

couldn't read bitmap file "C:\DOCUME~1\HKANNI~1.HEM\LOKALA~1\Temp\pdk- +Håkan Nil sson-3396\/Tk/arrowdownwin.xbm": No such file or directoryerror readin +g bitmap f ile "C:\DOCUME~1\HKANNI~1.HEM\LOKALA~1\Temp\pdk-Håkan Nilsson-3 +396\/Tk/arrowdownwin.xbm" at /PerlApp/Tk/Widget.pm line 205. at /PerlApp/Tk/Widget.pm line 203
Widget.pm is trying to load bitmaps, but there is a suspicious \/ combination in the path. On the next line the porgramme dies.

Never having struck this sort of thing before I am at somewhat of a loss. Does anybody have any advice or suggestions.

jdtoronto

Replies are listed 'Best First'.
Re: Accented characters in directory names?
by GrandFather (Saint) on Mar 07, 2006 at 02:48 UTC

    Looks like nothing to do with the character to me. Looks like something provided a path with a trailing \ to something that wasn't expecting it and has pasted its own path seperator on without checking to see if it is needed. This may be a bug in a Windows context where a \ is the default character for a path seperator, but / may be used.

    Check any paths that you are handing Tk for trailing path seperators that ought not be there.


    DWIM is Perl's answer to Gödel
      Yeah, I think the problem is in the ActiveState PDK, I am awaiting an answer from them.