[tor-bugs] #24361 [Applications/rbm]: rbm gives an error if a build script contains a wide character

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Nov 20 16:27:12 UTC 2017


#24361: rbm gives an error if a build script contains a wide character
-------------------------------+-------------------------------------------
     Reporter:  boklm          |      Owner:  boklm
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:                 |    Version:
  Applications/rbm             |
     Severity:  Normal         |   Keywords:  tbb-rbm, TorBrowserTeam201712
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+-------------------------------------------
 When a build script contains a wide character, rbm fails with the
 following error:
 {{{
 Error: Template Error:
 undef error - Wide character in null operation at input text line 1.
 }}}

 The reason is that in `var/build_id`, we call `sha256` on the content of
 the build script, which is using the `sha256_hex` function, which doesn't
 support wide characters:
 http://perldoc.perl.org/Digest/SHA.html#UNICODE-AND-SIDE-EFFECTS

 We currently don't use any build script with wide character in `tor-
 browser-build`. However the file `projects/tor-browser/RelativeLink/start-
 tor-browser` does contain a wide character (curly quotes: ”), which is a
 problem if we want to use it as a template (for #21998).

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24361>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list