File: set_encoding.patch

package info (click to toggle)
khronos-opencl-man 1.0~svn33624-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,608 kB
  • sloc: xml: 58,847; makefile: 603; ruby: 183; sh: 22
file content (19 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Explicitly set text encoding

(In Ruby 1.9+ without this, you get the message
./pageNumberLookup.rb:229:in `match': invalid byte sequence in US-ASCII (ArgumentError)
and a "successfully" built but nearly empty package)

Author: Rebecca Palmer
Bug-Debian: https://bugs.debian.org/735653
Forwarded: no


--- khronos-opencl-man-1.0~svn25290.orig/xhtml/pageNumberLookup.rb
+++ khronos-opencl-man-1.0~svn25290/xhtml/pageNumberLookup.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/ruby -EUTF-8
 
 # for Ruby 1.9