Re: Python throws error when closing /dev/urandom

2009-10-23 Thread Corinna Vinschen
On Oct 22 21:11, Andy Koppe wrote:
> > Reproduced the issue with this C test:
> >
> > #include 
> > #include 
> >
> > int main(void) {
> >  FILE *f = fopen("/dev/urandom", "r");
> >  if (!f) {
> >    puts("fopen failed");
> >    return 1;
> >  }
> >  char buf[8];
> >  printf("read %i bytes\n", fread(buf, 1, sizeof buf, f));
> >  if (fclose(f)) {
> >    puts("fclose failed");
> >    return 1;
> >  }
> >  return 0;
> > }
> >
> > The fclose fails on Cygwin, but succeeds on Debian.
> 
> ps: Same issue with /dev/zero, /dev/full, and also /dev/clipboard.

I fixed this issue for /dev/[u]random in CVS, which didn't behave
as Linux.

I can reproduce it for the other devices.  However, they all (well,
/dev/zero and /dev/full) behave like their Linux counterpart.  It seems
this is a bug in newlib's fflush, or rather, _fflush_r.  It expects
that the lseek call returns the exact correct, expected position after
a relative seek.  If lseek returns some other value, 0 for instance,
it treats that as an error.  Actually it should only treat an actual
error return as error, afaics.

I'll follow up on the newlib list.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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



Re: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-23 Thread John Daintree

I've installed the beta of cygwin 1.7 and I have the same problem there.

I've now attempting to build cygwin from sources to try to figure out what's 
going on.


"John Daintree"  wrote in message 
news:hbn24q$gj...@ger.gmane.org...

Hello all,

I've tried to solve my problem online and in the mailing list archives, 
but I've had no joy.


I'm working on a makefile for an application. Everything runs fine if I 
just run the make in a single job. However if I use the gmake -j to run 
multiple concurrent jobs I get unexpected errors from my scripts. 
Specifically it seems that /usr/bin/sh becomes randomly unavailable.


Here's the (sort | uniq) error output from the make with N=3: And again, 
everything's ok with N=1.


/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: /usr/bin/sh: bad 
interpreter: Permission denied
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: /usr/bin/sh.exe: bad 
interpreter: Permission denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: Permission 
denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: Permission 
denied


I'm currently getting this on both a Windows  7  (x64) machine and an XP 
(x86) machine.


Any ideas anyone?

John.












--
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



[ANNOUNCEMENT] [1.7] NEW: nfrotz-0.3.3-2

2009-10-23 Thread Charles Wilson
NFrotz is a Z-Machine interpretor (virtual machine) for text mode
interactive games.  It is an ncurses-based synthesis of the Windows
version of frotz ("WindowsFrotz") with the Unix one, adding support for
the Quetzal savefile format, Blorb and iFiction support, and Unicode [*]
output on terminals that support it. It supports zcode specification 1.1,
including all versions v1 thru v8 (except for some v6 [graphical] games).

[*] unicode output not yet enabled on cygwin, because that requires
a wide-char version of libncurses, which we do not yet have.

This release includes a bundled version of the great grand-daddy of them
all, "Colossal Cave Adventure" (aka Adventure). The original, written
in Fortran in 1975 by Will Crowther, was expanded by Don Woods in 1977
to a 350 point version, which was the most widely-distributed variant.
This was then ported DOS MS Fortran, which was itself re-implemented
using the TADS virtual machine interpreter. Finally, the TADS version
was ported to zcode -- and now you have it!

The more-or-less public domain version of the original MIT Zork (aka 
"Dungeon") is installed as zdungeon. This was the original mainframe
version, which was later modified and divided into the Zork Trilogy. It
was ported to zcode from the 1981-era PDP-10 MDL source by Ethan Dicks:
  http://www.penguincentral.com/retrocomputing/zdungeon/
Note that there ARE gameplay differences between Dungeon and similar
situations/locations in the Zork Trilogy.

There is also a script `/usr/bin/zork-config' which can be used to
download and install the Zork I, Zork II, Zork III, and Zork: The
Undiscovered Undergound games.  These four games were released gratis,
but not libre, by Infocom/Activision as part of the promotional campaign
for Zork: Nemesis and Zork Grand Inquisitor.  However, the license for
these games prohibits redistribution, so they are not directly bundled
here. Instead, use the script to download directly from the (unofficial,
now that Infocom is dead) Infocom homepage.

[[ compiled using gcc-4.3.4-1 ]]

-- 
Charles Wilson
volunteer nfrotz maintainer for cygwin



To update your installation, click on the "Install Cygwin now" link
on the http://cygwin.com/ web page.  This downloads setup.exe to
your system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is
available starting at this URL.


--
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



Looking for some help setting up Cygwin 1.7

2009-10-23 Thread Larry W. Virden

Today in following up some helpful suggestions by members of this mailing list 
I ran into some additional setup issues. 

For instance, right now, when I open a bash window, I find an environment where 
$HOME is set to
/cygdrive/c/Documents and Settings/lvirden

However, if I take a look at ~lvirden, I see that is mapped to /home/lwv27 - 
which doesn't exist.

Is there a service or something that maps "/home" to the $HOME settings? In 
fact, I think I'd rather $HOME be set to /home/whatever , to eliminate those 
embedded spaces.

Also, when I run
cygrunsrv -Q cron
I see a message saying that no such service is running. When I try to run
cygrunsrv --start cron

I get an error saying that the specified service does not exist as an installed 
service. I know the admin setting this up for me on my XP desktop ran the 
setup.exe command to install the package containing cron. Perhaps there is some 
other step I need to let him know about that has to be done after the install? 
Is there some place I can point him to help him get things setup?

Thank you so much for all your help.





-- 
Tcl - It's the real thing. http://wiki.tcl.tk/ 
http://www.purl.org/NET/lvirden/ http://www.xanga.com/lvirden/
Anything in this posting represents only my personal opinion.


  

--
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



Re: Looking for some help setting up Cygwin 1.7

2009-10-23 Thread Larry Hall (Cygwin)

On 10/23/2009 08:12 AM, Larry W. Virden wrote:


Today in following up some helpful suggestions by members of this
mailing  list I ran into some additional setup issues.

For instance, right now, when I open a bash window, I find an
environment  where $HOME is set to
/cygdrive/c/Documents and Settings/lvirden

However, if I take a look at ~lvirden, I see that is mapped to
/home/lwv27  - which doesn't exist.


Sounds like at least one postinstall script didn't run correctly and that
you've done some "fiddling" to try to fix things up.  I can say this much:

  1. At least some postinstall scripts didn't run properly.  If they had,
you should have /home/lvirden and $HOME would point to that.

  2. ~ comes from '/etc/passwd' and it would seem that this file exists and
 you've edited it to point to '/home/lwv27'.

Off the top of my head, I can't reconcile that and $HOME pointing to something
different.  So take a look around these areas and also look at the 
resolution rules

spelled out in '/etc/profile' to see if that helps you spot the issue.

If you need more help, please follow the problem reporting guidelines found 
here:





Is there a service or something that maps "/home" to the $HOME settings?
In fact, I think I'd rather $HOME be set to /home/whatever , to eliminate
those embedded spaces.

Also, when I run cygrunsrv -Q cron I see a message saying that no such
service is running. When I try to run cygrunsrv --start cron

I get an error saying that the specified service does not exist as an
installed service. I know the admin setting this up for me on my XP desktop
ran the setup.exe command to install the package containing cron. Perhaps
there is some other step I need to let him know about that has to be done
after the install? Is there some place I can point him to help him get
things setup?


You have to run 'cron-config'.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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



Re: Re: gawk Has Problem With CRLF in Mixed Binary/Text Files

2009-10-23 Thread Mark J. Reed
On Thu, Oct 22, 2009 at 9:43 PM, P.A.Long  wrote:



Please don't send cygcheck output inline.  Now any search for any of
the words that happened to show up in that output will find your
message...


-- 
Mark J. Reed 

--
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



Re: default ACLs

2009-10-23 Thread Corinna Vinschen
On Oct 23 10:45, Mikel Ward wrote:
> Hi All
> 
> Default ACLs don't seem to work as they would on Linux, or for that
> matter as they do for files created via Windows Explorer.
> 
> Is this expected?

It's a bit unexpected, actually.  Some of the security-related code
hasn't been touched for years and it appears that some of the
assumptions are rather old-fashioned.  I read MSDN quite a lot today.
It seems that ACE inheritance depends on the usage of the high-level
functions SetSecurityInfo/SetNamedSecurityInfo.  Cygwin on the other hand
uses the ultra-low level function NtSetSecurityObject, which apparently
has no idea what ACE inheritance is about.

And it gets worse.  Neither the NtCreateFile function, nor the
CreateFile function handle ACE inheritance either.  So, even if you
provide these functions with a security descriptor with the
SE_DACL_AUTO_INHERIT_REQ bit set, it's simply ignored and no inheritance
is performed.

I'm not yet sure if I should fix this for 1.7.1.  Keeping this
behaviour for the time being is at least not a regression :}


Thanks for the report,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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



Re: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-23 Thread jurriaan
From: John Daintree 
Date: Fri, Oct 23, 2009 at 12:02:52PM +0100
> I've installed the beta of cygwin 1.7 and I have the same problem there.

You're not running something like a virus scanner, are you? I know my
scripts throw some strange errors when McAfee is running. Why these
errors mostly happen at night while I'm in bed, I'm not sure. However, I
do know that since I've disabled McAfee, I sleep a lot better since work
never calls in the middle of the night.

HTH,
Jurriaan

--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread Mark J. Reed
On Fri, Oct 23, 2009 at 12:55 PM, Larry W. Virden wrote:
> $ echo $HOME
> /cygdrive/c/Documents and Settings/lwv27

That looks like it's inherited from Windows.  Cygwin won't set HOME if
it's already set in the Windows environment.

> Neither of these directories under /home are associated with me. They
> are, however, associated with the person who is running setup

Ah.  IIRC, if you're logging into Cygwin as a user other than the one
who set it up, you'll have to use mkpasswd to add that user to the
Cygwin environment.

-- 
Mark J. Reed 

--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread paul . hermeneutic
Larry:

Mark is right.

cat /etc/passwd

Perhaps you can get the 'admin' to create the users before it is given
to anyone else.  Or, it might be that LANDesk has some capability to
run a script after the package is installed.

--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread Larry W. Virden
Okay, I tried to use mkpasswd as Mark suggested. Here's what I see now:

$ grep lwv27 /etc/passwd
$ grep lwv2 /etc/passwd
lwv27:unused:14338:13710:Virden, Larry 
W.,U-CAS\lwv27,S-1-5-21-15812936-299453970-766854361-4338:/home/lwv27:/bin/bash
$ ls /home/lwv27
ls: cannot access /home/lwv27: No such file or directory
$ ls /home
Olentangy  rzt27





-- 
Tcl - It's the real thing. http://wiki.tcl.tk/ 
http://www.purl.org/NET/lvirden/ http://www.xanga.com/lvirden/
Anything in this posting represents only my personal opinion.


--- On Fri, 10/23/09, paul.hermeneu...@gmail.com  
wrote:

> From: paul.hermeneu...@gmail.com 
> Subject: Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS   
> value rather than /home/lwv27
> To: cygwin@cygwin.com
> Date: Friday, October 23, 2009, 1:29 PM
> Larry:
> 
> Mark is right.
> 
>     cat /etc/passwd
> 
> Perhaps you can get the 'admin' to create the users before
> it is given
> to anyone else.  Or, it might be that LANDesk has some
> capability to
> run a script after the package is installed.
> 
> --
> 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
> 
> 




--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread Dave Korn
Larry W. Virden wrote:
> Okay, I tried to use mkpasswd as Mark suggested. Here's what I see now:
> 
> $ grep lwv27 /etc/passwd
> $ grep lwv2 /etc/passwd
> lwv27:unused:14338:13710:Virden, Larry 
> W.,U-CAS\lwv27,S-1-5-21-15812936-299453970-766854361-4338:/home/lwv27:/bin/bash

  I'm hoping the first one of those was from before the mkpasswd and the
second one after, because otherwise something is very wrong if it can find
"lwv2" but not "lwv27" ...

> $ ls /home/lwv27
> ls: cannot access /home/lwv27: No such file or directory
> $ ls /home
> Olentangy  rzt27

  The home dir won't just appear when you update mkpasswd; you have to start a
new shell, when the /etc/profile startup script notices your home dir setting
doesn't exist it'll kick of the creation process for you.

  For the full explanation, see:
http://cygwin.com/1.7/faq/faq.setup.html#faq.setup.home

cheers,
  DaveK

--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread paul . hermeneutic
On Fri, Oct 23, 2009 at 13:47, Dave Korn
 wrote:
>  The home dir won't just appear when you update mkpasswd; you have to start a
> new shell, when the /etc/profile startup script notices your home dir setting
> doesn't exist it'll kick of the creation process for you.
>
>  For the full explanation, see:
> http://cygwin.com/1.7/faq/faq.setup.html#faq.setup.home

Larry:

Dave is right.  Creating a new shell is a much better way to get the
home directory created.  Here is an excerpt from /etc./profile.

50 # If the home directory doesn't exist, create it.
51 if [ ! -d "${HOME}" ]; then
52 mkdir -p "${HOME}"
53 echo "Copying skeleton files."
54 echo "These files are for the user to personalise"
55 echo "their cygwin experience."
56 echo
57 echo "These will never be overwritten."
58 echo
59 cd /etc/skel
60 /bin/find . -type f | while read f; do
61 fDest=`echo ${f} | sed -e 's/^\.//g'`
62 if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then
63 /usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}"
64 fi
65 done
66 fi

--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread Larry Hall (Cygwin)

On 10/23/2009 03:55 PM, paul.hermeneu...@gmail.com wrote:

On Fri, Oct 23, 2009 at 13:47, Dave Korn
  wrote:

  The home dir won't just appear when you update mkpasswd; you have to start a
new shell, when the /etc/profile startup script notices your home dir setting
doesn't exist it'll kick of the creation process for you.

  For the full explanation, see:
http://cygwin.com/1.7/faq/faq.setup.html#faq.setup.home


Larry:


Huh?  Wait.  I'm ah... Oh, you meant the other Larry. ;-)


Dave is right.  Creating a new shell is a much better way to get the
home directory created.  Here is an excerpt from /etc./profile.

50 # If the home directory doesn't exist, create it.
51 if [ ! -d "${HOME}" ]; then

...

Maybe I missed this clarification for the OP in the intervening thread
messages but if HOME is actually set in the Windows environment, it
will override the home path set in '/etc/passwd'.  Starting a new shell
is certainly required to invoke the mechanism to create the home directory
and copy the skeleton files in but that won't happen unless the directory it
thinks is "home" doesn't exist.  If the Windows environment has $HOME
pointing to an existing directory, then the changes in '/etc/passwd' will be
transparent no matter what he does.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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



Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27

2009-10-23 Thread Larry W. Virden
I believe I have things fixed. The issue was that there was a HOME variable set 
before Windows got started very far. 

Digging around the web, I found an article which pointed me to Control 
Panel->System->Advanced->Environment variables, where I deleted it and Cygwin 
was happy to create a /home/lwv27 for me after that.

Thank you all 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



[ANNOUNCEMENT] [1.7] NEW: {libksba/libksba8/libksba-devel}-1.0.7-1

2009-10-23 Thread Charles Wilson
KSBA (pronounced Kasbah) is a library to make X.509 certificates as well
as the Cryptographic Message Syntax (CMS) easily accessible by other
applications. Both specifications are building blocks of S/MIME and TLS.

libksba is a prerequisite for GnuPG2. This build passes all internal
self-tests, and has no known cygwin-specific deficiencies. It is
available only for cygwin-1.7.

[[ compiled using gcc-4.3.4-1 ]]

-- 
Charles Wilson
volunteer libksba maintainer for cygwin



To update your installation, click on the "Install Cygwin now" link
on the http://cygwin.com/ web page.  This downloads setup.exe to
your system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is
available starting at this URL.


--
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



matlab not fully functional on cygwin

2009-10-23 Thread Alex D. Kostic

Hi,

I recently installed cygwin (Cygwin/X X Server Version 1.5.3 (20090222), 
X11R6) and am experiencing problems when I run MATLAB (7.9.0 R2009b)  on 
it.  For the most part MATLAB works fine, except when I open an Editor 
window the contents are blank (it's just a blank box), and when I try to 
open a figure (matlab .fig file) the figure is visible, but the toolbar 
is blank.  So most of the functionality I need with MATLAB is unavailable.


I appreciate any help with this.

Thanks,
Alex

--
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



Re: default ACLs

2009-10-23 Thread Mikel Ward
Corinna wrote:
> Neither the NtCreateFile function, nor the
> CreateFile function handle ACE inheritance either. 

Looks like that's only if lpSecurityAttributes is non-NULL, but I guess
Cygwin uses that field?

"Windows Server 2003 and Windows XP/2000:  For backward compatibility
purposes, CreateFile does not apply inheritance rules when you specify a
security descriptor in lpSecurityAttributes. To support inheritance,
functions that later query the security descriptor of this file may
heuristically determine and report that inheritance is in effect. For
more information, see Automatic Propagation of Inheritable ACEs."

Out of interest I'm going to have a look at SECURITY_DESCRIPTORs, but
it'll take some time. :-)

> Thanks for the report
Thanks for taking a look!





--
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



Re: dg-error vs. i18n?

2009-10-23 Thread Charles Wilson
[cross-posted to cygwin list]

Background for cygwin list: Dave discovered a problem running some of
the gcc tests.  The tests were run in the "C" locale, but in so doing
they assumed an ascii encoding (specifically, that "'" would match ' in
test patterns -- but the program actually emitted those fancy curled
quotes which did not match ').

Dave Korn wrote:
> Thanks, that was it.  Had to use "C.CP437" in the end, apparently we have
> charset encoding names for lots of OEM code pages but none for plain vanilla
> ASCII.

That's interesting. I had thought "ascii" was a fairly common encoding
name; I know I've seen both 'encoding="ascii"' and 'encoding="us-ascii"'
in XML documents.  Maybe we (cygwin) should add an explicit
plain-old-ascii encoding name?

--
Chuck

--
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



Re: dg-error vs. i18n?

2009-10-23 Thread Dave Korn
Charles Wilson wrote:
> [cross-posted to cygwin list]

[ Cross-post broken and CC list trimmed; I don't think we need trouble the GCC
list with this again until we have a patch that says what kind of
target-dependent changes we want to make to the testsuite files to set LANG
and LC_ALL correctly for our platform. ]

> 
> Background for cygwin list: Dave discovered a problem running some of
> the gcc tests.  The tests were run in the "C" locale, but in so doing
> they assumed an ascii encoding (specifically, that "'" would match ' in
> test patterns -- but the program actually emitted those fancy curled
> quotes which did not match ').
> 
> Dave Korn wrote:
>> Thanks, that was it.  Had to use "C.CP437" in the end, apparently we have
>> charset encoding names for lots of OEM code pages but none for plain vanilla
>> ASCII.
> 
> That's interesting. I had thought "ascii" was a fairly common encoding
> name; I know I've seen both 'encoding="ascii"' and 'encoding="us-ascii"'
> in XML documents.  Maybe we (cygwin) should add an explicit
> plain-old-ascii encoding name?

  This was tangentially referenced in the recent thread "Re: "C" UTF-8
trouble" on the -developers list.

cheers,
  DaveK


--
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



Re: dg-error vs. i18n?

2009-10-23 Thread Andy Koppe
2009/10/24 Charles Wilson:
> [cross-posted to cygwin list]
>
> Background for cygwin list: Dave discovered a problem running some of
> the gcc tests.  The tests were run in the "C" locale, but in so doing
> they assumed an ascii encoding (specifically, that "'" would match ' in
> test patterns -- but the program actually emitted those fancy curled
> quotes which did not match ').

Do you mean they explicitly set the "C" locale?

Hmm. Now that we've got the "C.UTF-8" default, "C" could actually go
back to mean ASCII. With no locale variables set, the console and
filesystem would use UTF-8 anyway, as would applications that call
setlocale(,""). Only applications that don't call setlocale() would be
using the "C" locale and hence ASCII, as but that'd be fine as either
they don't care about it or they actually expect to be using ASCII.

> Dave Korn wrote:
>> Thanks, that was it.  Had to use "C.CP437" in the end, apparently we have
>> charset encoding names for lots of OEM code pages but none for plain vanilla
>> ASCII.

Actually, we do: "C.ASCII". Except it's 8-bit rather than 7-bit as
elsewhere, making it practically the same as "C.ISO-8859-1".

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