... | ... |
@@ -23,7 +23,7 @@ |
23 | 23 |
;;; Suspects encoding list for source code character encoding (default:UTF-8) |
24 | 24 |
;;; set comma separated encoding list if your source code is different from UTF-8. |
25 | 25 |
;;; encoding name follow Perl encoding API. |
26 |
-;encoding_suspects=cp932,utf8 |
|
26 |
+;encoding_suspects=cp932,UTF-8 |
|
27 | 27 |
|
28 | 28 |
[admin] |
29 | 29 |
;;; If you forget admin password, |
... | ... |
@@ -441,3 +441,12 @@ note 'Markdown normal file'; |
441 | 441 |
$t->get_ok("/$user/$project/blob/12e44f2e4ecf55c5d3a307889829b47c05e216d3/dir/markdown.md"); |
442 | 442 |
$t->content_like(qr#<h1 .*?>Head</h1>#); |
443 | 443 |
} |
444 |
+ |
|
445 |
+note 'encoding_suspects option'; |
|
446 |
+{ |
|
447 |
+ my $app = Gitprep->new; |
|
448 |
+ $app->git->encoding_suspects(['EUC-jp', 'UTF-8']); |
|
449 |
+ my $t = Test::Mojo->new($app); |
|
450 |
+ $t->get_ok("/$user/$project/blob/3cf14ade5e28ee0cd83b9a3b1e1c332aed66df53/euc-jp.txt"); |
|
451 |
+ $t->content_like(qr/あああ/); |
|
452 |
+} |