File: testdata.patch

package info (click to toggle)
golang-github-paulrosania-go-charset 0.0~git20151028.0.621bb39-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 504 kB
  • ctags: 236
  • sloc: makefile: 9
file content (18 lines) | stat: -rw-r--r-- 610 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Last-Update: 2016-03-23
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 {