[EPIC] What is a space? And who is using a non-C locale?

2004-11-08 Thread Jeremy Nelson
So one of the things that has come up during the epic4 vote is how
spaces are handled inconsistently throughout epic.  I had originally
intended to address this in epic5, but it looks like this is a real
problem for /xdebug extractw users.

In the C locale, characters 9 (^I), 10 (^J), 11 (^K), 12 (^L), 13 (^M), 
and 32 (space) are considered spaces.  That means isspace(x) returns 1
for any x = one of those characters, and 0 for everything else.  

EPIC has three ways to determine spaces

1) Use the system's isspace(), which could be locale dependant.
2) Use epic's my_isspace() which behaves exactly the same as isspace()
   does in the C locale.
3) Just compare the character against character 32 (space).

It would be best if we just had one way, because that would be less 
confusing.  But this is a problem because in some places in epic, a
tab is a space, and in other places, it isn't.  So if I just switch
everything to use isspace(), then some scripts might break in ways
that I can't anticipate.

I have two questions:

*) Are any of you using tabs, newlines, carriage returns, etc, in any
   way that depends on them not being a space character in some context?
   If you are, you need to be a participant in this discussion!

*) Are any of you using a non-C locale?  (If you don't know, then you are
   not)  Does your locale have a different set of space characters?

Feedback for these two questions is greatly appreciated and may reduce
near term pain and suffering. 

Jeremy
___
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list


[EPIC] Bug Report for epic4-2.0

2004-11-08 Thread Jeffrey Denton
ftp://ftp.us.sinuspl.net/pub/mirrors/ftp.epicsol.org/pub/epic/EPIC4-PRODUCTION/epic4-2.0.tar.bz2

irc.c: In function `check_password':
irc.c:966: `input_password' undeclared (first use in this function)
irc.c:966: (Each undeclared identifier is reported only once
irc.c:966: for each function it appears in.)
make[1]: *** [irc.o] Error 1
make[1]: Leaving directory `/home/subgenius/src/epic4-2.0/source'
make: *** [epic] Error 2

From irc.c:

  strlcpy(input_passwd, getpass(Passwd: ), sizeof input_password);

Should be sizeof input_passwd


From #epic on irc.efnet.net:

*** Channel #epic was created at Sun Apr 15 22:28:21 2001
 irc.c: In function `check_password':
 irc.c:966: `input_password' undeclared (first use in this function)
 that bug been reported yet?
howl Which version of epic are you trying to compile?
 2.0
 should be input_passwd
 ftp://ftp.us.sinuspl.net/pub/mirrors/ftp.epicsol.
+org/pub/epic/EPIC4-PRODUCTION/epic4-2.0.tar.bz2
howl Well, I don't think many users use that functionality, which may be the
+reason why no one found the error.
 is what I downloaded
 *grin*
 will this get passed on to the appropriate person?
howl Well, ahem, the appropriate person is on vacation now, but he will be
+back in a week or so.
nsx i'd say that calls for an epic4-2.0.1
howl Yeah, probably.
howl Well, that calls for the version of epic4 due to be released any time
+now anyway.
nsx he could talk to ce right
 is there a email address I can send this bug report to?
nsx and ce is probably around
howl yeah, CE is always around.
nsx i'd just report it to ce then
nsx you know if he doesn't fix it, he'll at least tell hop about it
howl Yeah, but that might not be his territory. :)
howl hehe, I could fix it on my copy of epic5, but that does no good :)
nsx i would always say wd could take a look, but wd seems to be too good for
+IRC nowadays
howl Well, he is online, but he's too good for #epic.
 hop at epicsol dot org work?
 guessing
arioch jnelson
arioch isn't it
 ok, I'll send an email 
howl hehe, surprisingly, hop doesn't list his own email in /info
howl arioch, I think hop works too.
howl dentonj, you can also mail [EMAIL PROTECTED]
 ok
howl err
howl _list_
howl [EMAIL PROTECTED]
arioch [EMAIL PROTECTED] probably the best if you're sending a bug report
howl Yeah, exactly.
howl Though hop seems to prefer getting bug reports on IRC, and not taken on
+the mailinglist unless necesarry.
arioch well he's not exactly around
howl Exactly.


dentonj
 
___
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list