[Development] Qt 5 types under consideration for deprecation / removal in Qt 6

Thiago Macieira thiago.macieira at intel.com
Tue Jun 4 00:53:55 CEST 2019


On Saturday, 1 June 2019 08:14:13 PDT Jean-Michaƫl Celerier wrote:
> xxd.ps1:
> param([String]$path)
> 
> $bytes = [System.IO.File]::ReadAllBytes($path);
> $size = $bytes.length;
> 
> $bytes = (($bytes | %{ "0x" + $_  ; }) | Out-String);
> $content = $bytes -replace "`r",", " -replace "`n","" -replace ".{2}$";
> $res = "unsigned char foobar[] = { " + $content + " }; + `r`nunsigned int
> foobar_len = " + $size + ";`r`n";
> echo $res
> 
> Feel free to use as you see fit
> Best,

Thanks. Unfortunately, it didn't go very far:

File C:\Qt\qt5\qtbase\src\corelib\mimetypes\mime\encode.ps1 cannot be loaded 
because running scripts is disabled on this system. For more information, see 
about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
    + CategoryInfo          : SecurityError: (:) [], 
ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

I know how to turn that off, but I needed Admin privileges to do that. I don't 
think it's going to be acceptable for a Qt build.

It's much easier to require people to install Perl.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products






More information about the Development mailing list