search for: isalpha

Displaying 20 results from an estimated 73 matches for "isalpha".

1997 Nov 28
0
R-alpha: Latin-1 characters / Locale etc.
...need a call to PD> #include <locale.h> PD> setlocale(LC_ALL,"") PD> (or LC_CTYPE?) before your environment variables take effect. Yes, this was `it'. Maybe R needs such a call also? (I did not yet look in the src) sophie{maechler}328> cat isalpha-tst.c =09=09=09 ------------- /*--- Testing 'locale' [env.variable LC_CTYPE ] --------------- */ #include <ctype.h> /*- isalpha(.) -*/ #include <stdio.h> /*- putchar(.) -*/ #include <locale.h> unsigned char c =3D 0; char *p; void main() { setlocale(LC_ALL,"&quot...
2000 Dec 11
2
Point in usernames / scp
...". We found it necessary to patch the source to make the "scp" command work with those usernames. Cheers Kai --- openssh-2.2.0p1/scp.c Wed Aug 30 01:11:30 2000 +++ withpoint/scp.c Mon Dec 11 02:06:35 2000 @@ -1042,7 +1042,7 @@ c = *cp; if (c & 0200) goto bad; - if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-') + if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c != '.') goto bad; } while (*++cp); return (1);
1997 Nov 26
1
R-alpha: Latin-1 characters (3)
>> ------------------------ >> R & R, any comments? >> ------------------------ At present the parser makes the decision on what characters can go into symbol names based on isalpha(c). If someone will send me a function - say isidchar(c) which returns 1 for characters which can be in identifiers and 0 otherwise, I will replace the current test with that. Ross -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http:/...
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...++CurPtr; // Eat the two char newline sequence. - + ++CurLineNo; return '\n'; - } + } } int LLLexer::LexToken() { TokStart = CurPtr; - + int CurChar = getNextChar(); - + switch (CurChar) { default: // Handle letters: [a-zA-Z_] if (isalpha(CurChar) || CurChar == '_') return LexIdentifier(); - + return CurChar; case EOF: return YYEOF; case 0: @@ -234,7 +234,7 @@ int LLLexer::LexToken() { return LexToken(); case '0': case '1': case '2': case '3': case '4':...
2002 Aug 02
3
[Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
...ld be unsigned. * openbsd-compat/inet_aton.c (inet_aton): Arguments to the isdigit(), isxdigit(), islower() and isspace() macros should be unsigned. * openbsd-compat/mktemp.c (_gettemp): The isdigit() macro argument should be unsigned. * openbsd-compat/readpassphrase.c (readpassphrase): The isalpha() macro argument should be unsigned. Index: canohost.c =================================================================== RCS file: /cvs/openssh/canohost.c,v retrieving revision 1.30 diff -u -p -r1.30 canohost.c --- canohost.c 11 Jul 2002 03:56:47 -0000 1.30 +++ canohost.c 2 Aug 2002 12:13:37 -00...
2000 Mar 09
1
Patch for scp (openssh 1.2.2p1)
...t, scp gives an error "Invalid user name". The following patch fixed that behaviour: diff -ru scp.c-save scp.c --- scp.c-save Thu Mar 9 12:21:43 2000 +++ scp.c Thu Mar 9 12:22:25 2000 @@ -1062,7 +1062,7 @@ c = *cp; if (c & 0200) goto bad; - if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-') + if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c != '.') goto bad; } while (*++cp); return (1); Hope that this can be ap...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...tf.o snprintf.o vsprint send.o recv.o \ access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ - readlink.o select.o symlink.o pipe.o \ + readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \ ctype/isgraph.o ctype/islower.o ctype/isprint.o \ --- /dev/null +++ b/usr/klibc/realpath.c @@ -0,0 +1,147 @@ +#include <errno.h> +#include <limits.h> +#include <stdlib.h> +#include <sys/stat.h> +#i...
2005 Mar 23
2
limiting bandwidth on iface
...econds, the bandwidth gues up to about 256kbits for about 3 seconds - I have no explanation for this - well, I do not really know what to set as parameter for burst/cburst... Any ideas, grave mistakes? thanks a lot, Marcus Fritzsch - -- ~ s(c,t){return isalpha(c)&&t?/* Marcus Fritzsch <marcus.fritzsch@gmx.net> ICQ:53118621 WWW:fritschy.de ~ GnuPG: gpg --keyserver sks.keyserver.penguin.de --recv-keys 98A1D365 */s(65-c&&97-c?--c:c+25,--t):c;}main(){for(;;)putchar(s(getchar(),13));} -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4...
2001 Sep 28
0
openssh-2.9.9p2 subscript violation problems with ctype macros
....9.2 -r2.9.9.2.0.1 --- openbsd-compat/readpassphrase.c 2001/06/29 12:35:13 2.9.9.2 +++ openbsd-compat/readpassphrase.c 2001/09/28 18:48:11 2.9.9.2.0.1 @@ -118,11 +118,11 @@ readpassphrase(prompt, buf, bufsiz, flag if (p < end) { if ((flags & RPP_SEVENBIT)) ch &= 0x7f; - if (isalpha(ch)) { + if (isalpha((unsigned char)ch)) { if ((flags & RPP_FORCELOWER)) - ch = tolower(ch); + ch = tolower((unsigned char)ch); if ((flags & RPP_FORCEUPPER)) - ch = toupper(ch); + ch = toupper((unsigned char)ch); } *p++ = ch; } ========================...
2008 Jan 29
1
"ROracle" Packages is not to be installed (PR#10652)
...R-2.6.1-patched/include -DRS_ORA_SQLGLS_WORKAROUND -I/usr/local/include -fpic -g -O2 -c RS-DBI.c -o RS-DBI.o RS-DBI.c: In function `RS_DBI_makeSQLNames': RS-DBI.c:1175: warning: assignment discards qualifiers from pointer target type RS-DBI.c:1188: warning: implicit declaration of function `isalpha' RS-DBI.c: In function `RS_na_set': RS-DBI.c:1226: warning: assignment discards qualifiers from pointer target type make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/tmp/R.INSTALL.Po4474/ROracle/src' proc CODE=ANSI_C MODE=ORACLE INCLUDE=...
2015 Oct 12
13
[Bug 2478] New: Escape sequences (starting with ~) don't work when remote shell is BusyBox ash
...erminal sends back a "report cursor position" sequence. The result is that the SSH client *never* sees your tilda as immediately following the newline. Those ANSI terminal control sequences always begin with "<ESC>[" and end with an alphabetic character. Hence the call to isalpha() in my code. Can someone confirm that isalpha() *always* treats a-z and A-Z as alphabetic, no matter what the locale is? -- You are receiving this mail because: You are watching the assignee of the bug.
2009 Feb 09
0
ROracle - ORA-02005: implicit (-1) length not valid for this bind or define datatype
...lude -DRS_ORA_SQLGLS_WORKAROUND -I/usr/local/include -fpic -O3 -g -std=gnu99 -c RS-DBI.c -o RS-DBI.o RS-DBI.c: In function 'RS_DBI_makeSQLNames': RS-DBI.c:1175: warning: assignment discards qualifiers from pointer target type RS-DBI.c:1188: warning: implicit declaration of function 'isalpha' RS-DBI.c: In function 'RS_na_set': RS-DBI.c:1226: warning: assignment discards qualifiers from pointer target type make[1]: Leaving directory `/tmp/R.INSTALL.T23031/ROracle/src' proc CODE=ANSI_C MODE=ORACLE INCLUDE=/usr/lib64/R/include \ PARSE=NONE LINES=false PREFET...
2017 Mar 21
4
Clang -O0 performs optimizations that undermine dynamic bug-finding tools
...count[7]; } Note, that Clang printed a warning and then optimized the invalid access away (which is legit since it is UB). However, note that that cases exist where no warning is printed. For example, consider the following program: #include <ctype.h> int main() { isalnum(1000000); isalpha(1000000); iscntrl(1000000); isdigit(1000000); isgraph(1000000); islower(1000000); isprint(1000000); ispunct(1000000); isspace(1000000); isupper(1000000); isxdigit(1000000); } The glibc (on my system) implements the macros by calling __ctype_b_loc() which returns...
2006 Jun 26
2
[PATCH, RFC 3/13] OTP: parity table
Add OTP parity table. diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/lib-otp/otp-parity.c dovecot/src/lib-otp/otp-parity.c --- dovecot.vanilla/src/lib-otp/otp-parity.c 1970-01-01 03:00:00.000000000 +0300 +++ dovecot/src/lib-otp/otp-parity.c 2006-06-23 13:44:31.161891112 +0400 @@ -0,0 +1,29 @@ +/* + * OTP parity table. + * + * Copyright (c) 2006 Andrey Panin <pazke at
2012 Aug 02
0
[LLVMdev] Problem to generate an executable file of 403.gcc (SPEC2006)
...to `ISXDIGIT' 403.gcc.linked.rbc:(.text+0x994c2): undefined reference to `IS_NVSPACE' 403.gcc.linked.rbc:(.text+0x9aad3): undefined reference to `ISIDNUM' 403.gcc.linked.rbc:(.text+0x9ec89): undefined reference to `ISPRINT' 403.gcc.linked.rbc:(.text+0xcd96b): undefined reference to `ISALPHA' 403.gcc.linked.rbc:(.text+0x29c47d): undefined reference to `TOLOWER' etc, etc, etc. I am running LLVM 3.0 on a Linux Ubuntu on a 32-bits x86 machine. I need a little help with this. Regards, Raphael
2002 Apr 12
1
scp.c::okname() problem
...================================================================ RCS file: /cvs/openssh/scp.c,v retrieving revision 1.94 diff -u -p -r1.94 scp.c --- scp.c 6 Apr 2002 18:30:00 -0000 1.94 +++ scp.c 12 Apr 2002 02:13:22 -0000 @@ -1016,7 +1016,7 @@ okname(cp0) if (c & 0200) goto bad; if (!isalpha(c) && !isdigit(c) && - c != '_' && c != '-' && c != '.' && c != '+') + c != '_' && c != '-' && c != '.' && c != '+' && c != '#') goto bad;...
2012 Mar 06
1
Invalid user name: function okname() in scp.c
...called *okname(char *cp0)* that validates the entered username by using the scp command as follows: * *[ Fragment scp.c start ] ... int okname(char *cp0) { int c; char *cp; cp = cp0; do { c = (int)*cp; if (c & 0200) goto bad; if (!isalpha(c) && !isdigit(c)) { switch (c) { case '\'': case '"': case '`': case ' ': * case '#':* goto bad; default: break; }...
2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
.../klibc/include/ctype.h Mon Nov 24 15:37:03 2003 +++ b/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 @@ -35,13 +35,13 @@ __ctype_inline int isalnum(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower|__ctype_digit); } __ctype_inline int isalpha(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower); } @@ -57,48 +57,48 @@ __ctype_inline int iscntrl(int __c) { - return (__c >= 0) && !(__ctypes[__c+1] & __ctype_print); + return (__c >= 0) && !(__ctypes[_...
2005 Mar 29
2
classes and qdiscs
.../ \ ~ | / \ ~ | / \ ~ | class 1:10 qdisc 11: ~ | / \ ~ | ... ... ~ `----- does this makes any sense? greetings from germany, Marcus - -- ~ s(c,t){return isalpha(c)&&t?/* Marcus Fritzsch <marcus.fritzsch@gmx.net> ICQ:53118621 WWW:fritschy.de ~ GnuPG: gpg --keyserver sks.keyserver.penguin.de --recv-keys 98A1D365 */s(65-c&&97-c?--c:c+25,--t):c;}main(){for(;;)putchar(s(getchar(),13));} -----BEGIN PGP SIGNATURE----- Version: GnuPG v1....
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
...tf.o snprintf.o vsprint send.o recv.o \ access.o chmod.o chown.o dup2.o mknod.o poll.o rename.o stat.o \ lchown.o link.o rmdir.o unlink.o utimes.o lstat.o mkdir.o \ - readlink.o select.o symlink.o pipe.o \ + readlink.o realpath.o select.o symlink.o pipe.o \ ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ ctype/isblank.o ctype/iscntrl.o ctype/isdigit.o \ ctype/isgraph.o ctype/islower.o ctype/isprint.o \ --- /dev/null +++ b/usr/klibc/realpath.c @@ -0,0 +1,45 @@ +#include <fcntl.h> +#include <limits.h> +#include <stdlib.h> +#include <sys/types.h> +#i...