Re: [Pharo-dev] back and oldBack in UTF-8 files

2014-01-31 Thread Nicolas Cellier
I wonder why we need back and oldBack (reallyOldBack ?) in the first place. Condensing sources or changes should just consist in writing source of each method/class comment sequentially (forward), and remember the position of the stream... So this backward thing must be some poorly written part.

Re: [Pharo-dev] back and oldBack in UTF-8 files

2014-01-31 Thread Sven Van Caekenberghe
Hi Pavel, On 31 Jan 2014, at 20:33, Pavel Krivanek wrote: > Hi, > > I was looking why we cannot do condenseChanges and the reason looks to be > clear: we do not have proper methods to move backwards (messages #back and > #oldBack) in UTF-8 files. The current implementation changes position b

[Pharo-dev] back and oldBack in UTF-8 files

2014-01-31 Thread Pavel Krivanek
Hi, I was looking why we cannot do condenseChanges and the reason looks to be clear: we do not have proper methods to move backwards (messages #back and # oldBack) in UTF-8 files. The current implementation changes position by one byte but in UTF-8 files it can be up to six bytes. And it's worse.