Hello.
I use TextMate 1.5.5. I came across a problem exibited by the perl bundle Tidy command.
If the output of a command, in this case perltidy, contains chars in utf8, all the output is discarded and we end up with a blank document. For example this script:
##################
my $body = <<END; Reparámos END
############
If I run the tidy command on this file, I end up with a blank document. Perltidy works fine though because I tried redirecting the output of the command to a file and it's all there.
Any ideias?
Regards, André Cruz
On 10 May 2007, at 15:39, André Cruz wrote:
If I run the tidy command on this file, I end up with a blank document. Perltidy works fine though because I tried redirecting the output of the command to a file and it's all there.
I just committed a change which I think should fix it. You can svn up, or if you aren't running from svn then: • Open the bundle editor • Expand the Perl bundle • Click on the Tidy command • Prepend “__CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 ” before “perltidy -st…” • Close the bundle editor
After that it should work.
André,
On May 10, 2007, at 11:39 AM, André Cruz wrote:
Hello.
I use TextMate 1.5.5. I came across a problem exibited by the perl bundle Tidy command.
If the output of a command, in this case perltidy, contains chars in utf8, all the output is discarded and we end up with a blank document. For example this script:
##################
my $body = <<END; Reparámos END
############
You must save your file before tidying it :-)
Good luck!
-- Igor Sutton igor.sutton@gmail.com
Um, shouldn't the command enforce that then?
On May 10, 2007, at 9:01 AM, Igor Sutton Lopes wrote:
André,
On May 10, 2007, at 11:39 AM, André Cruz wrote:
Hello.
I use TextMate 1.5.5. I came across a problem exibited by the perl bundle Tidy command.
If the output of a command, in this case perltidy, contains chars in utf8, all the output is discarded and we end up with a blank document. For example this script:
##################
my $body = <<END; Reparámos END
############
You must save your file before tidying it :-)
Good luck!
-- Igor Sutton igor.sutton@gmail.com
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On May 10, 2007, at 7:58 PM, André Cruz wrote:
On 2007/05/10, at 17:01, Igor Sutton Lopes wrote:
You must save your file before tidying it :-)
Very funny Igor... :)
Of course I saved it. Does the Tidy command work for you?
Yes. I created another Tidy command, calling 'perltidy'. The first time I used the Tidy command it worked with the file contents, not the buffer contents.
-- Igor Sutton igor.sutton@gmail.com