Dear All,
I have a strange situation wherein the output of a command appears properly if I select "Show as HTML", but disappears if I select "Create New Document" (i.e., a blank file appears). Why does this happen?
Here is the full story: I wanted to modify the subversion Diff commands to use wdiff instead of subversions built-in capacities. I added an enviornment variable called "TM_SVN_DIFF_CMD", with a value "wdiff_svn_wrapper.sh". "wdiff_svn_wrapper.sh" is simply a wrapper script that calls "wdiff $6 $7". I do this in order to get read of the numerous options that subversion attaches, and retain only the file names.
If I then use the commands "Diff Revisions..." or "Diff With Revision..." everything works perfectly: I get the appropriate comparison between the appropriate revision. If I use "Diff With Newest (Head)" or "Diff With Working Copy (Base)", etc., I get the appropriate output if I select "Show as HTML" for the output, but a blank document if I select "Create New Document" as output. What can be happening?
Thanks, Zvi
On 15. May 2007, at 22:17, Zvi Biener wrote:
[...] I get the appropriate output if I select "Show as HTML" for the output, but a blank document if I select "Create New Document" as output. What can be happening?
Most likely the result of the command is not (valid) UTF-8.
TextMate expects the command result to be UTF-8, and presently it will not inform you, if it is not (it will just result in no output).