public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: cygwin Digest 10 Sep 2009 16:45:51 -0000 Issue 6623
       [not found] <1252601151.20705.ezmlm@cygwin.com>
@ 2009-09-11 11:05 ` Kit Johnson
  2009-09-11 18:56   ` Andy Koppe
  0 siblings, 1 reply; 3+ messages in thread
From: Kit Johnson @ 2009-09-11 11:05 UTC (permalink / raw)
  To: cygwin

> 2009/9/10 Kit Johnson:
>> Thanks so much for taking the time to help.  This is the first time I've
>> used a mailing list so I hope I've replied correctly.
>>     
>
> Yep, except you replied to me instead of the list. ;)
>   
I hope I got the right address this time!
> Are you running the Cygwin 1.7 beta? 1.5 doesn't support locales.
> ('uname -r' will tell you.)
>   
I've just upgraded to the beta version (1.7.0). 

I understand your comments.  This is now in my cygwin.bat file 
(definitely for the correct, beta, installation):
@echo off

C:
chdir C:\cyg\bin
set LANG=th_TH.UTF-8
bash --login -i

And these lines in my .bashrc file (also definitely the correct 
installation):

alias ls='ls -hF --color=tty --show-control-chars'                 # 
classify files in colour
export LANG="th_TH.UTF-8"

And yet it's still not listing unicode characters properly.  Now that 
I've upgraded, it's not giving any warning messages ("ls: cannot access 
???????????????? : No such file or directory.")
when running 'ls' in a folder with Thai filenames.  It's just listing 
????.doc or whatever.

I cannot see the solution but would be really grateful if someone else 
can.  It's a pretty critical feature for me to get working if I want to 
use cygwin.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygwin Digest 10 Sep 2009 16:45:51 -0000 Issue 6623
  2009-09-11 11:05 ` cygwin Digest 10 Sep 2009 16:45:51 -0000 Issue 6623 Kit Johnson
@ 2009-09-11 18:56   ` Andy Koppe
  2009-09-13  3:08     ` Kit Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Koppe @ 2009-09-11 18:56 UTC (permalink / raw)
  To: cygwin

2009/9/11 Kit Johnson:
> I've just upgraded to the beta version (1.7.0).
> This is now in my cygwin.bat file (definitely
> for the correct, beta, installation):
> @echo off
>
> C:
> chdir C:\cyg\bin
> set LANG=th_TH.UTF-8
> bash --login -i
>
> And these lines in my .bashrc file (also definitely the correct
> installation):
>
> alias ls='ls -hF --color=tty --show-control-chars'
> classify files in colour
> export LANG="th_TH.UTF-8"

No need to set LANG again here, because it gets passed down from
cygwin.bat anyway.


> And yet it's still not listing unicode characters properly.  Now that I've
> upgraded, it's not giving any warning messages ("ls: cannot access
> ???????????????? : No such file or directory.")
> when running 'ls' in a folder with Thai filenames.  It's just listing
> ????.doc or whatever.

Looks like it's a limitation in the Windows console's font support
actually, because this doesn't work with 'dir' in cmd.exe either. I
tried listing a Thai filename with all of the three font choices
available in the 'Command Prompt Properties' on my system, all with
much the same results you reported. (The only variation was in the
glyph representing unsupported characters.)

However, since presumably you're using a Thai version of Windows, you
might have more success with trying different fonts.

If not, you should try the 'mintty' terminal instead of the standard
Cygwin console. This definitely does support Thai characters and is
able to use a greater range of fonts than the console.

The stable version 0.4.4 can be installed through Cygwin's setup.exe,
but version 0.5 makes it much easier to set up the locale and
character set. Choose them on the 'Text' pane of its options dialog,
and the LANG variable will be set accordingly. Mintty 0.5-beta2 is
available from http://mintty.googlecode.com.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygwin Digest 10 Sep 2009 16:45:51 -0000 Issue 6623
  2009-09-11 18:56   ` Andy Koppe
@ 2009-09-13  3:08     ` Kit Johnson
  0 siblings, 0 replies; 3+ messages in thread
From: Kit Johnson @ 2009-09-13  3:08 UTC (permalink / raw)
  To: cygwin


> However, since presumably you're using a Thai version of Windows, you
> might have more success with trying different fonts.
>   
Actually I'm using a normal version of windows.  I've never seen anyone 
use a Thai version...perhaps it's not available.
> If not, you should try the 'mintty' terminal instead of the standard
> Cygwin console. This definitely does support Thai characters and is
> able to use a greater range of fonts than the console.
>
> The stable version 0.4.4 can be installed through Cygwin's setup.exe,
> but version 0.5 makes it much easier to set up the locale and
> character set. Choose them on the 'Text' pane of its options dialog,
> and the LANG variable will be set accordingly. Mintty 0.5-beta2 is
> available from http://mintty.googlecode.com.
>   
That's done the trick, and was very easy and user-friendly.  I can even 
type in Thai!  Good idea to add /bin to the windows Path variable; I 
hadn't thought of that.  I love the transparency too!

Thanks so much for your help.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-13  3:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1252601151.20705.ezmlm@cygwin.com>
2009-09-11 11:05 ` cygwin Digest 10 Sep 2009 16:45:51 -0000 Issue 6623 Kit Johnson
2009-09-11 18:56   ` Andy Koppe
2009-09-13  3:08     ` Kit Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).