Control: tags -1 patch

On Tue, Nov 07, 2017 at 01:58:23PM +0100, Samuel Thibault wrote:
> Package: dpkg
> Version: 1.19.0.4
> Severity: normal
>
> Hello,
>
> $ locale charmap
> UTF-8
> $ mkdir testé
> $ cd testé
> $ apt-get source hello
> $ cd hello-*
> $ dpkg-buildpackage -b
>
> fails with
>
> dh clean
> Can't use string ("0") as a HASH ref while "strict refs" in use at 
> /usr/share/perl5/Dpkg/Vendor/Debian.pm line 397.
>
> This is working when using "teste" instead of "testé".
> This was working with dpkg 1.18.24.
>
> Samuel

It's not just non-ASCII, it's anything other than a "safe" subset of
ASCII (i.e. anything that might need escaping). This should fix it:

> --- a/scripts/Dpkg/Vendor/Debian.pm/Debian.pm
> +++ b/scripts/Dpkg/Vendor/Debian.pm/Debian.pm
> @@ -204,7 +204,7 @@
>          # so that we do not need to worry about escaping the characters
>          # on output.
>          if ($build_path =~ m/[^-+:.0-9a-zA-Z~\/_]/) {
> -            $use_feature{fixdebugpath} = 0;
> +            $use_feature{reproducible}{fixdebugpath} = 0;
>          }
>      }
>  

Regards,
James

Reply via email to