[txmt-dev] Git outputs filled with <NUL>

Fred B fredb7 at gmail.com
Thu Sep 20 22:21:38 UTC 2012


Hi,

First, is there any reasons beside lack of time/motivation/etc. why the git bundle outputs don't use the web themes?

Anyway, while taking a look at it, it noticed the git bundle outputs are filled with NUL characters e.g. between every entry in the log or status command. It doesn't seem to cause problem with the html output, but if you try to view source the resulting file is truncated at the first <NUL>. When I change the output to text, TM2 has a hard time building the file and hangs if there are too much entries. Using the log command on the Git.tmbundle itself, there are close to 7000 NUL chars on one line after each entry. That can build up quickly.

The farthest I could track the problem is in the flush method (in Git.tmbundle/Support/tmvc/lib/application_controller.rb) when doing @output_buffer.truncate(0). I don't know why truncate would produce NUL characters or how to fix it properly…

--  
FredB  


More information about the textmate-dev mailing list