"UTF-8-demo.txt" may be a binary file. See it anyway?

1,121 views
Skip to first unread message

Chee Cheng

unread,
Sep 12, 2011, 11:02:46 AM9/12/11
to terminator-users
I just downloaded Terminator on my Mac running 10.6.8. When I tried
"more UTF-8-demo.txt", I got
'"UTF-8-demo.txt" may be a binary file. See it anyway?' When I said
"yes", I got back a bunch of code, rather than readable text. Do I
need to do any special setup?

Thanks.

Martin Dorey

unread,
Sep 12, 2011, 11:39:51 AM9/12/11
to chee.k...@gmail.com, terminat...@googlegroups.com
This would let you see it as intended:

export LC_ALL=en_US.UTF-8

Where and how you're supposed to set something like that on Mac OS, I don't know, but I'd add it to ~/.profile.

Thanks.

--
You received this message because you are subscribed to the Google Groups "terminator-users" group.
To post to this group, send email to terminat...@googlegroups.com.
To unsubscribe from this group, send email to terminator-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/terminator-users?hl=en.

Chee Cheng

unread,
Sep 12, 2011, 1:20:00 PM9/12/11
to terminator-users
It works. However, some texts from the file are not displayed
correctly. For example, this line

STARGΛ̊TE SG-1, a = v̇ = r̈, a⃑ ⊥ b⃑

In terminator, the small circle and A in "GATE" displayed as two
characters; also, the small dot and the v are displayed as two
characters as well.

Thank you.

Martin Dorey

unread,
Sep 12, 2011, 1:48:53 PM9/12/11
to terminat...@googlegroups.com, Chee Cheng (chee.k.cheng@gmail.com)
> In terminator, the small circle and A in "GATE" displayed as two
> characters; also, the small dot and the v are displayed as two
> characters as well.

Not for me, with Terminator on Linux. I wouldn't have been surprised, since I don't think we do anything special for combining characters... but then that test doesn't seem to do anything tricky, like cursor movement or position reporting.

Chee Cheng

unread,
Sep 12, 2011, 2:52:31 PM9/12/11
to terminator-users
UTF-8-demo.txt is displayed correctly using Mac OS's own Terminal
application. Oh well, it's no big deal.

Thank you.

Chris Reece

unread,
Sep 12, 2011, 4:14:36 PM9/12/11
to terminat...@googlegroups.com, Chee Cheng (chee.k.cheng@gmail.com)

On 13/09/2011, at 5:48 AM, Martin Dorey wrote:

>> In terminator, the small circle and A in "GATE" displayed as two
>> characters; also, the small dot and the v are displayed as two
>> characters as well.
>
> Not for me, with Terminator on Linux. I wouldn't have been surprised, since I don't think we do anything special for combining characters... but then that test doesn't seem to do anything tricky, like cursor movement or position reporting.

Not that it disproves the problem for Chee Cheng, but it looks acceptable (barring font ugliness) to me, too, on OS X 10.6.8:

Screen shot 2011-09-13 at 8.10.32 AM.png

Chee Cheng

unread,
Sep 12, 2011, 4:22:22 PM9/12/11
to terminator-users
Hi Chris,

Did you do any other configuration besides adding "export
LC_ALL=en_US.UTF-8" to .bash_profile or .bashrc?

Thanks.
>  Screen shot 2011-09-13 at 8.10.32 AM.png
> 9KViewDownload

Chris Reece

unread,
Sep 12, 2011, 7:27:58 PM9/12/11
to terminat...@googlegroups.com, Chee Cheng
On 13/09/11 08:22, Chee Cheng wrote:
> Hi Chris,
>
> Did you do any other configuration besides adding "export
> LC_ALL=en_US.UTF-8" to .bash_profile or .bashrc?
>
> Thanks.

Actually, I didn't even do that. My environment shows no LC_* settings
at all. I did try it with LC_ALL set as above, too, for completeness,
and again, it just worked.

I'm probably running an older version of Terminator, though. When I get
home from work I'll find out what version I'm running, and then try
again with an up to date copy. I'll let you know.

Cheers,

Chris.

Martin Dorey

unread,
Sep 12, 2011, 7:52:02 PM9/12/11
to terminat...@googlegroups.com, Chee Cheng
> it just worked

OP used more(1). Your screenshot used cat(1).

Cheers,

Chris.

--

Chris Reece

unread,
Sep 12, 2011, 7:55:17 PM9/12/11
to terminat...@googlegroups.com, Martin Dorey, Chee Cheng
On 13/09/11 11:52, Martin Dorey wrote:
>> it just worked
> OP used more(1). Your screenshot used cat(1).

Good call. I'll try and replicate that, then.

Reply all
Reply to author
Forward
0 new messages