File: testdata.patch

package info (click to toggle)
golang-github-paulrosania-go-charset 0.0~git20190326.55c9d7a-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: makefile: 10
file content (18 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Last-Update: 2018-02-16
Forwarded: no
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: adjust path to data files to fix tests.

--- a/charset/file.go
+++ b/charset/file.go
@@ -20,9 +20,9 @@
 
 // CharsetDir gives the location of the default data file directory.
 // This directory will be used for files with names that have not
 // been registered with RegisterDataFile.
-var CharsetDir = "/usr/local/lib/go-charset/datafiles"
+var CharsetDir = "../../datafiles"
 
 func readFile(name string) (data []byte, err error) {
 	var r io.ReadCloser
 	if open := files[name]; open != nil {