Fossil SCM

Bugfix. Translation implies encoding, not the reverse. This caused problems when parsing files with mixed-mode line-endings. The generated char offsets and lengths were off. Found during expansion.

aku 2007-12-05 07:58 trunk
Commit 6f1c4424b4d53322ece0345231e1358b7f912849
--- tools/cvs2fossil/lib/rcsparser.tcl
+++ tools/cvs2fossil/lib/rcsparser.tcl
@@ -440,11 +440,11 @@
440440
# # ## ### ##### ######## #############
441441
## Setup, callbacks.
442442
443443
proc Initialize {path sink} {
444444
::variable mypos 0
445
- ::variable mydata [fileutil::cat -encoding binary $path]
445
+ ::variable mydata [fileutil::cat -translation binary $path]
446446
::variable mysize [file size $path]
447447
::variable mysink $sink
448448
return
449449
}
450450
451451
--- tools/cvs2fossil/lib/rcsparser.tcl
+++ tools/cvs2fossil/lib/rcsparser.tcl
@@ -440,11 +440,11 @@
440 # # ## ### ##### ######## #############
441 ## Setup, callbacks.
442
443 proc Initialize {path sink} {
444 ::variable mypos 0
445 ::variable mydata [fileutil::cat -encoding binary $path]
446 ::variable mysize [file size $path]
447 ::variable mysink $sink
448 return
449 }
450
451
--- tools/cvs2fossil/lib/rcsparser.tcl
+++ tools/cvs2fossil/lib/rcsparser.tcl
@@ -440,11 +440,11 @@
440 # # ## ### ##### ######## #############
441 ## Setup, callbacks.
442
443 proc Initialize {path sink} {
444 ::variable mypos 0
445 ::variable mydata [fileutil::cat -translation binary $path]
446 ::variable mysize [file size $path]
447 ::variable mysink $sink
448 return
449 }
450
451

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button