poeml / mirrorbrain

MirrorBrain
http://mirrorbrain.org/
Other
75 stars 37 forks source link

UTF-8 problem in scanner #149

Closed poeml closed 9 years ago

poeml commented 9 years ago
                                                                                    [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue149

Title    UTF-8 problem in scanner
 Priority   bug    Status   resolved
Superseder        Nosy List poeml
Assigned To poeml Keywords  scanner
msg538 (view) Author: poeml Date: 2014-02-09.13:57:24

Cool... I found a fix here but can't remember why I made it. Now I found the bug and confirmed that the scanner is indeed broken when it encounters files with UTF-8 characters:

Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597. Character in 'c' format wrapped in pack at tools/scanner.pl line 597.

msg539 (view) Author: poeml Date: 2014-02-09.13:59:14

The following makes it work. Committed in r8392.

@@ -594,7 +594,7 @@ print "$identifier: date $date\n"; print "$identifier: size $size\n"; }

History
         Date         User  Action              Args
2014-02-09 13:59:14 poeml set    status: in-progress -> resolved
                                   messages: + msg539
2014-02-09 13:57:24 poeml create
(end of migrated issue)