1 |
gienah 12/06/02 03:36:51 |
2 |
|
3 |
Added: |
4 |
haddock-2.10.0-dont-crash-on-unicode-strings-in-doc-comments.patch |
5 |
Log: |
6 |
Apply patch from upstream: Don't crash on unicode strings in doc comments. |
7 |
|
8 |
(Portage version: 2.1.10.63/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-haskell/haddock/files/haddock-2.10.0-dont-crash-on-unicode-strings-in-doc-comments.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/files/haddock-2.10.0-dont-crash-on-unicode-strings-in-doc-comments.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/files/haddock-2.10.0-dont-crash-on-unicode-strings-in-doc-comments.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: haddock-2.10.0-dont-crash-on-unicode-strings-in-doc-comments.patch |
17 |
=================================================================== |
18 |
--- haddock-2.10.0-orig/src/Haddock/Lex.x 2012-03-04 03:21:18.000000000 +1100 |
19 |
+++ haddock-2.10.0/src/Haddock/Lex.x 2012-05-30 22:19:31.858259148 +1000 |
20 |
@@ -181,7 +181,7 @@ |
21 |
go inp@(pos, _, str) sc = |
22 |
case alexScan inp sc of |
23 |
AlexEOF -> [] |
24 |
- AlexError _ -> error "lexical error" |
25 |
+ AlexError _ -> [] |
26 |
AlexSkip inp' _ -> go inp' sc |
27 |
AlexToken inp'@(pos',_,_) len act -> act pos (take len str) sc (\sc -> go inp' sc) dflags |
28 |
|
29 |
--- haddock-2.10.0-orig/dist/build/haddock/haddock-tmp/Haddock/Lex.hs 2012-03-04 03:21:21.000000000 +1100 |
30 |
+++ haddock-2.10.0/dist/build/haddock/haddock-tmp/Haddock/Lex.hs 2012-05-30 22:23:40.209770708 +1000 |
31 |
@@ -131,7 +131,7 @@ |
32 |
go inp@(pos, _, str) sc = |
33 |
case alexScan inp sc of |
34 |
AlexEOF -> [] |
35 |
- AlexError _ -> error "lexical error" |
36 |
+ AlexError _ -> [] |
37 |
AlexSkip inp' _ -> go inp' sc |
38 |
AlexToken inp'@(pos',_,_) len act -> act pos (take len str) sc (\sc -> go inp' sc) dflags |