вт, 13 авг. 2019 г. в 06:19, Michael Paquier <mich...@paquier.xyz>: > > On Fri, Aug 09, 2019 at 11:21:52AM +0300, Dmitry Igrishin wrote: > > Personally I don't care. I used || notation only in order to be > > consistent, since this notation is already used in Solution.pm. If > > this consistency is not required let me provide a patch with {} > > notation. What do you think? > > We are talking about one place in src/tools/msvc/ using qq on HEAD. > So one or the other is fine by me as long as we remain in the > acceptable ASCII ranks. Okay. 5th version of patch is attached.
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index d1d0aed07e..67e9eede49 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -495,7 +495,7 @@ sub mkvcbuild my $pythonprog = "import sys;print(sys.prefix);" . "print(str(sys.version_info[0])+str(sys.version_info[1]))"; my $prefixcmd = - $solution->{options}->{python} . "\\python -c \"$pythonprog\""; + qq{"$solution->{options}->{python}\\python" -c "$pythonprog"}; my $pyout = `$prefixcmd`; die "Could not query for python version!\n" if $?; my ($pyprefix, $pyver) = split(/\r?\n/, $pyout); diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index b5d1dc6e89..88e9e3187d 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -132,11 +132,6 @@ sub AddLibrary { my ($self, $lib, $dbgsuffix) = @_; - if ($lib =~ m/\s/) - { - $lib = '"' . $lib . """; - } - push @{ $self->{libraries} }, $lib; if ($dbgsuffix) { diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 318594db5d..400c6706fb 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -126,7 +126,7 @@ sub GetOpenSSLVersion # Attempt to get OpenSSL version and location. This assumes that # openssl.exe is in the specified directory. my $opensslcmd = - $self->{options}->{openssl} . "\\bin\\openssl.exe version 2>&1"; + qq{"$self->{options}->{openssl}\\bin\\openssl.exe" version 2>&1}; my $sslout = `$opensslcmd`; $? >> 8 == 0