Re: X11R7.5 and C.UTF-8

2009-12-04 Thread Thomas Dickey

On Thu, 3 Dec 2009, Eric Blake wrote:


Thomas Dickey dickey at his.com writes:


This means that characters 0..127 have to be treated as ASCII, but


No, it means that portable characters and control characters must be  128.
ASCII meets this characteristic, but so does EBCDIC, as well as UTF-8.  The C
locale also implies that you can manipulate bytes = 128 in the naive manner,
so long as you don't care about characters embedded in those bytes.  And what
do you know - ASCII, EBCDIC, and UTF-8 all meet this property, too.


beyond that an implementation can do what it wants. And on Cygwin 1.7,
plain C actually does imply UTF-8, which happily is
backward-compatible with ASCII.


That's an interpretation that so far hasn't been blessed by the standards
people.  Any discussion of this topic should mention that, as a caveat.


Actually, the standards people HAVE spoken - and they agreed with our
interpretation.  POSIX was INTENTIONALLY written with the intent that a UTF-8
encoding is valid for the C locale, for the same reason that it was written
that an EBCDIC encoding is valid for the C locale.  These emails from the
Austin Group (the folks that write POSIX) are telling:

https://www.opengroup.org/sophocles/show_mail.tpl?
CALLER=show_archive.tplsource=Llistname=austin-group-lid=12982


This is basically your email on the matter.


https://www.opengroup.org/sophocles/show_mail.tpl?
CALLER=show_archive.tplsource=Llistname=austin-group-lid=13012

But they also admitted that there is still more work needed in POSIX to make
this intent clearly codified (for example, that control characters must be
single bytes  128).


But they have not actually agreed with you yet.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

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



how do I get help if I can't figure out how to do anything?

2009-12-04 Thread Wendel Dean Renner
Do you have a list of consultants? 
And it is not like I am ignorant of computers.  I write c++ code. 
Without help, who is going to be able to use anything provided?


Have managed to compile and link a Open GL, X/Motif program (using 
lesstif) and

get Error:  Can't open display.

Need to be able to run program remotely on a ubuntu system.   I can't 
get beyond connection refused.


Ran xstartwin.bat and lost control c - control V on Windows.   


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



Re: how do I get help if I can't figure out how to do anything?

2009-12-04 Thread Michael Breuer
Have you looked at the troubleshooting documentation? You know you can 
run with verbose and log options. My guess is that the reason the 
display can't be opened is made reasonable clear in your log file(s).
I'm also going to hazard a guess that your xserver doesn't have opengl 
support.

Wendel Dean Renner wrote:
Do you have a list of consultants? And it is not like I am ignorant of 
computers.  I write c++ code. Without help, who is going to be able to 
use anything provided?


Have managed to compile and link a Open GL, X/Motif program (using 
lesstif) and

get Error:  Can't open display.

Need to be able to run program remotely on a ubuntu system.   I can't 
get beyond connection refused.


Ran xstartwin.bat and lost control c - control V on Windows.  
--

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



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



Re: how do I get help if I can't figure out how to do anything?

2009-12-04 Thread Christopher Faylor
On Fri, Dec 04, 2009 at 09:44:34AM -0500, Wendel Dean Renner wrote:
Do you have a list of consultants? 
And it is not like I am ignorant of computers.  I write c++ code. 
Without help, who is going to be able to use anything provided?

What is a consultant?  Are you actualy saying that you will be willing
to pay someone to help you?  If not, then this list is your
consultant.  If so, then the answer is probably no.

It's free software so if you don't understand something then you read
the documentation.  If the documentation doesn't help then you ask in an
appropriate forum and are grateful when someone volunteers time to help
you.

cgf

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



Re: 1.7 - what's the right way to start X?

2009-12-04 Thread Fredrik Staxeng
Larry Hall (Cygwin X) reply-to-list-only-l...@cygwin.com writes:

On 12/03/2009 04:07 PM, Fredrik Staxeng wrote:
 What is the recommended/preferred way to start X in 1.7? In 1.5
 I used a modified version of startxwin.bat. And where do I
 put my .xinitrc/.xsession script?

What about startxwin.bat doesn't work for you?  There shouldn't be
differences between 1.5 and 1.7 here.

Now I have gotten startxwin.bat to work, and modified it to run my bash
script. I had some strange problems on the way though. Previously, I had
used the Cygwin Bash Shell to make some changes. I use mount -c /, change
/etc/passwd to refer to right home directory /c/home/fstx, and put in
my .profile and .bash_rc files. I don't remember doing the mkpasswd/mkgroup 
thing, but I could have.

When I double-clicked startxwin.bat for the first time, it failed. I think
XWin.exe did not start dfor some reason. But I immediately tried again, and
this time I got an XTerm. However, I was in /home/fstx, not /c/home/fstx,
and I got the mkpasswd message. 

When I tried to fix things, I discovered that the mount prefix was set back
to /cygdrive. I can change it, but when I restart cygwin it goes back to
/cygdrive. I can live with that (at least for now)

But starting xterms seems to be very slow, and about 25% of time it fails
with 
  2 [main] xterm 3128 fork: child -1 - died waiting for longjmp 
before initialization, retry 0, exit code 0xC005, errno 11
xterm: Error 29, errno 11: Resource temporarily unavailable
Reason: spawn: fork() failed

I have seen this problem before, and the solution was to run rebaseall, 
which broke emacs, and then reinstall libncurses to fix emacs. 

Is this the way to do it? 
Will it still break emacs? 
Will other things break?
Will it break again when updating cygwin?

I am running Windows 7 64-bit Enterprise.

Despite the troubles I have had, I must say that I admire Cygwin for
doing a very good job at an almost impossible task, and the developers
for the heroic efforts to bring Cygwin to each new version of Windows,
despite that Microsoft apparently couldn't care less about breaking it.
 
-- 
Fredrik Stax\ang | rot13: s...@hcqngr.hh.fr
This is all you need to know about vi: ESC : q ! RET


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



Re: 1.7 - what's the right way to start X?

2009-12-04 Thread DePriest, Jason R.
On Fri, Dec 4, 2009 at 10:12 AM, Fredrik Staxeng  wrote:
 Larry Hall (Cygwin X)  writes:

On 12/03/2009 04:07 PM, Fredrik Staxeng wrote:
 What is the recommended/preferred way to start X in 1.7? In 1.5
 I used a modified version of startxwin.bat. And where do I
 put my .xinitrc/.xsession script?

What about startxwin.bat doesn't work for you?  There shouldn't be
differences between 1.5 and 1.7 here.


1.7 makes some pretty significant changes on how 'mount' works.

Basically, Cygwin 1.7 uses a real fstab file instead of a bunch of
registry entries and 'mount' only creates temporary mounts.  If you
want a permanent mount, use the fstab file.

In a little bit more detail, see below.

From: http://cygwin.com/1.7/cygwin-ug-net/ov-new1.7.html
- Mount points are no longer stored in the registry.  Use /etc/fstab
  and /etc/fstab.d/$USER instead.  Mount points created with mount(1)
  are only local to the current session and disappear when the last
  Cygwin process in the session exits.
- Cygwin creates the mount points for /, /usr/bin, and /usr/lib automatically
  from it's own position on the disk.  They don't have to be specified in
  /etc/fstab.

This discusses the mount table in more detail:
http://cygwin.com/1.7/cygwin-ug-net/using.html#mount-table

This is the help information for mount under 1.7:
http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mount

Thanks.

-Jason

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



Re: 1.7 - what's the right way to start X?

2009-12-04 Thread Ken Brown

On 12/4/2009 11:12 AM, Fredrik Staxeng wrote:
I have seen this problem before, and the solution was to run rebaseall, 
which broke emacs, and then reinstall libncurses to fix emacs. 

Is this the way to do it? 
Will it still break emacs? 


I haven't seen any reports of emacs problems in 1.7 after rebasing.

Ken Brown
Cygwin's emacs maintainer

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



Re: how do I get help if I can't figure out how to do anything?

2009-12-04 Thread Gene C. Ruzicka

Wendel Dean Renner wrote:
Do you have a list of consultants? And it is not like I am ignorant of 
computers.  I write c++ code. Without help, who is going to be able to 
use anything provided?


Have managed to compile and link a Open GL, X/Motif program (using 
lesstif) and

get Error:  Can't open display.

Need to be able to run program remotely on a ubuntu system.   I can't 
get beyond connection refused.


Ran xstartwin.bat and lost control c - control V on Windows.  
--

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


One issue that comes to mind is your environment. Have you tried running 
other x-clients such
as xterm or xclock? Is the $DISPLAY environmental variable set? 

Cygwin is a tremendously useful bridge between Windows and Linux but 
it's often frustrating to

use.



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



Re: how do I get help if I can't figure out how to do anything?

2009-12-04 Thread Scott Fordin

Have you tried starting the Cygwin X Server with the -ac option
to disable access control?

Scott

Gene C. Ruzicka wrote:

Wendel Dean Renner wrote:
Do you have a list of consultants? And it is not like I am ignorant of 
computers.  I write c++ code. Without help, who is going to be able to 
use anything provided?


Have managed to compile and link a Open GL, X/Motif program (using 
lesstif) and

get Error:  Can't open display.

Need to be able to run program remotely on a ubuntu system.   I can't 
get beyond connection refused.


Ran xstartwin.bat and lost control c - control V on Windows.  -- 
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/


One issue that comes to mind is your environment. Have you tried running 
other x-clients such

as xterm or xclock? Is the $DISPLAY environmental variable set?
Cygwin is a tremendously useful bridge between Windows and Linux but 
it's often frustrating to

use.



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




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



Can't start Xwin server using latest Cygwin 1.7, Xorg server, etc.

2009-12-04 Thread Jim Reisert AD1C

I'm having problems again getting the X server to start from startxwin.bat.

My environment contains:

LANG=C
LC_TIME=C

Here are parts of my environment:

base-cygwin  2.0-1   OK
cygrunsrv1.34-1  OK
cygutils 1.4.1-2 OK
cygwin   1.7.0-68OK
cygwin-doc   1.5-1   OK
emacs-X1123.1-10 OK
expat2.0.1-1 OK
font-adobe-dpi75 1.0.1-1 OK
font-alias   1.0.2-1 OK
font-daewoo-misc 1.0.1-1 OK
font-encodings   1.0.3-1 OK
font-isas-misc   1.0.1-1 OK
font-jis-misc1.0.1-1 OK
font-misc-misc   1.1.0-1 OK
gettext  0.17-11 OK
libexpat12.0.1-1 OK
libexpat1-devel  2.0.1-1 OK
libpixman1_0 0.16.2-1OK
libX11_6 1.3.2-2 OK
libXau6  1.0.5-1 OK
libXaw3d71.5D-8  OK
libXaw7  1.0.7-1 OK
libxcb1  1.4-2   OK
libXdmcp61.0.3-1 OK
libXext6 1.1.1-1 OK
libXft2  2.1.14-1OK
libxkbfile1  1.0.6-1 OK
libxml2  2.7.4-1 OK
libXmu6  1.0.5-1 OK
libXmuu1 1.0.5-1 OK
libXpm4  3.5.8-1 OK
libXrender1  0.9.5-1 OK
libXt6   1.0.7-1 OK
lynx 2.8.5-4 OK
run  1.1.12-11   OK
run2 0.3.2-1 OK
texinfo  4.13-3  OK
util-linux   2.14.1-1OK
xauth1.0.4-1 OK
xcursor-themes   1.0.2-1 OK
xemacs-emacs-common  21.4.22-1   OK
xinit1.2.0-1 OK
xkbcomp  1.1.1-1 OK
xkeyboard-config 1.7-1   OK
xmodmap  1.0.4-1 OK
xorg-server  1.7.1-3 OK
xrdb 1.0.6-1 OK
xterm251-1   OK

Here is the log file:

d:\cygwin\binstartxwin.bat

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.7.1.0 (10701000)
Build Date: 2009-11-11

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

XWin -multiwindow -clipboard -silent-dup-error

winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winPrefsLoadPreferences: /cygdrive/d/Home/.XWinrc
LoadPreferences: Done parsing the configuration file...
winGetDisplay: DISPLAY=:0.0
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Multi Window or Rootless = ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per 
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1680 height: 1050 
depth: 32

winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 
bpp 32

null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
Screen 0 added at XINERAMA coordinate (0,0).
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack 
of shared memory support in the kernel

(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
[dix] Could not init font path element /usr/share/fonts/TTF/, removing 
from list!
[dix] Could not init font path element /usr/share/fonts/OTF/, removing 
from list!
[dix] Could not init font path element /usr/share/fonts/Type1/, removing 
from list!

winPointerWarpCursor - Discarding first warp: 840 525
(--) 16 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0409 (0409)
(--) Using preset keyboard for English (USA) (409), type 4
Rules = base Model = pc105 Layout = us Variant = none Options = 
none

winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winInitMultiWindowWM - pthread_mutex_unlock ()