git://git.jankratochvil.net
/
mdsms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed strict converting/checking of symbol characters to '?'.
[mdsms.git]
/
mdsms.c
diff --git
a/mdsms.c
b/mdsms.c
index
68917a5
..
a7a9905
100644
(file)
--- a/
mdsms.c
+++ b/
mdsms.c
@@
-5,6
+5,9
@@
static char rcsid[] ATTR_UNUSED = "$Id$";
/*
* $Log$
/*
* $Log$
+ * Revision 1.6 1999/07/28 10:46:37 short
+ * Removed strict converting/checking of symbol characters to '?'.
+ *
* Revision 1.5 1999/07/19 10:02:51 short
* Removed '\xXY' chars for compatibility with Digital UNIX vendor "cc".
*
* Revision 1.5 1999/07/19 10:02:51 short
* Removed '\xXY' chars for compatibility with Digital UNIX vendor "cc".
*
@@
-718,18
+721,19
@@
static char *pdudata;
static inline unsigned char charconv(char c,size_t offs)
{
static inline unsigned char charconv(char c,size_t offs)
{
- if ((c>='A' && c<='Z') || (c>='a' && c<='z') || (c>='0' && c<='9')) return(c);
switch (c) {
case '@': return(0);
case '$': return(2);
switch (c) {
case '@': return(0);
case '$': return(2);
- case '"': return(96);
- case ' ':
- return(c);
case 0: assert(0);
case 0: assert(0);
+ default:
+ return(c&0x7F);
}
}
+#if 0
+ if ((c>='A' && c<='Z') || (c>='a' && c<='z') || (c>='0' && c<='9')) return(c);
error("Can't convert character '%c' (0x%02X) at offs %d (0-based), substituted '?'",
c,(unsigned char)c,offs);
return('?');
error("Can't convert character '%c' (0x%02X) at offs %d (0-based), substituted '?'",
c,(unsigned char)c,offs);
return('?');
+#endif
}
static inline void genpdu(void)
}
static inline void genpdu(void)