RE: perl 5.10 ActiveScript engine
On Thu, 20 Dec 2007, Michael Ellery wrote: > ..I just upgraded to 5.10 (uninstalled 5.8 and installed 5.10, actually) > and I can't seem to execute using the perl ActiveScript engine. For > instance, I try this simple script: > > > > use strict; > say "Hello World"; > > > > and try to run with cscript -- cscript crashes. > > In our application, we also have a custom ActiveScript host (so we can > execute ActiveScript engines) and we can also no longer run using the > PerlScript engine. We get an exception thrown from the InitNew method > on the IActiveScriptParse interface. Is the activescript engine broken > in this release? Yes, it looks like it is broken. :( The same issue probably afflicts PerlEx and Perl for ISAPI as well. I'll see that we can get this fixed ASAP. Cheers, -Jan ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
perl 5.10 ActiveScript engine
..I just upgraded to 5.10 (uninstalled 5.8 and installed 5.10, actually) and I can't seem to execute using the perl ActiveScript engine. For instance, I try this simple script: use strict; say "Hello World"; and try to run with cscript -- cscript crashes. In our application, we also have a custom ActiveScript host (so we can execute ActiveScript engines) and we can also no longer run using the PerlScript engine. We get an exception thrown from the InitNew method on the IActiveScriptParse interface. Is the activescript engine broken in this release? TIA, Mike Ellery ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Accessing WMI with localized Windows l10n
On Thu, 20 Dec 2007, Frank Pikelner wrote: > Hello, > > I wanted to ask the list whether anyone has any suggestions or sample > code for dealing with collecting information such as accounts and > groups from WMI with localized versions of Windows. > > I already have code to query and collect account/group information > from WMI. The question is on how to correctly collect account/group > information and present (in an Internet browser) localized Windows OS > versions where account/group names are created with localized > alphabets (say Cyrillic). > > The standard WMI query to collect Windows local account/group > information provides correct results. When the same query is used on a > localized Windows version with Cyrillic characters the result is > garbage characters. Assuming you are using Win32::OLE to do your WMI queries, I suspect that you didn't switch Win32::OLE to Unicode mode. For backwards compatibility reasons it is using the ANSI codepage by default and will use replacement characters for all characters not found in the ANSI codepage. This is the call to turn on Unicode support in Win32::OLE: Win32::OLE->Option(CP => Win32::OLE::CP_UTF8); Cheers, -Jan ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Accessing WMI with localized Windows l10n
Hello, I wanted to ask the list whether anyone has any suggestions or sample code for dealing with collecting information such as accounts and groups from WMI with localized versions of Windows. I already have code to query and collect account/group information from WMI. The question is on how to correctly collect account/group information and present (in an Internet browser) localized Windows OS versions where account/group names are created with localized alphabets (say Cyrillic). The standard WMI query to collect Windows local account/group information provides correct results. When the same query is used on a localized Windows version with Cyrillic characters the result is garbage characters. Thank you, Frank ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs