Commit Graph

2092 Commits

Author SHA1 Message Date
matt 0ec618ca27 Add __floatunsi{sd}f for IEEE754.
Unlike the quad versions, these don't use floating point.
2013-08-23 16:01:35 +00:00
joerg a5358f3607 Remove most LC_CTYPE specific parts of locale.cache. 2013-08-19 22:43:28 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
wiz 0ed5815bd6 Strings are NUL-terminated, not NULL-terminated. 2013-06-30 19:19:12 +00:00
martin 6caac9d0e7 Rearrange to make lint deal with it (to unbreak the build).
Someone please (1) fix lint and then (2) back this out ;-)
2013-06-30 10:07:43 +00:00
matt 138bf8b9ef When opening a ttys files, try path.<machine> first. This helps
machine archs which have multiple ttys files (arm, mips, powerpc, m68k, sh3)
2013-06-30 07:50:54 +00:00
wiz 15848daca9 More markup. Merge two error entries for the same error. 2013-05-24 09:35:11 +00:00
enami d47f3c1bfa Update ERRORS section:
- Remove some system calls from the list of functions which may set errno
  during the execution of realpath(3) since they are no longer used
  to implement it.
- Document some errno set by the realpath(3) itself.
2013-05-24 03:20:18 +00:00
joerg e0ac190e1e Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
2013-05-17 12:55:56 +00:00
matt 9163f0b126 Include softfloat-for-gcc.h for __ARM_EABI__ to get aeabi aliases. 2013-04-30 01:44:07 +00:00
joerg 4e2459a9e6 Add isalpha_l and friends. 2013-04-16 11:29:12 +00:00
joerg e8fa8f4db7 Extend ctype classification table to 16bit. Based on patch by
Takehiko Nozaki, with changes to compile fail when using the old names
and to exploit __BUILD_LEGACY
2013-04-13 10:21:20 +00:00
joerg 71e4dd8871 Use more consistent naming for tolower/toupper translation table for the
C locale. From Takehiko Nozaki with changes to use __BUILD_LEGACY.
2013-04-13 10:16:27 +00:00
lukem 10126a0b3e Use "unsigned FOO" instead of less-portable "u_FOO". 2013-03-20 23:44:47 +00:00
yamt 0501b18883 wrap a long line 2013-03-06 11:27:46 +00:00
yamt d48c7c8537 remove unnecessary casts 2013-03-06 11:27:28 +00:00
enami de0e018a8c - Refer the argument with correct name.
- Mark up the function as a function like rest of this paragraph does.
2013-03-05 03:11:27 +00:00
soda ac809960e5 a sequel to getcwd.c revision 1.52 and realpath.3 revision 1.13 by christos:
explicitly mention that NULL is allowed as second argument
in the description part as well.

PR/46618: Onno van der Linden: realpath(3) isn't SUSv4 compliant (and causes
flactag 2.0.4 to dump core). Fix to accept a NULL argument for resolvedpath.
2013-03-05 02:46:33 +00:00
christos b1baeb1ce1 remove code that did special handling for . and .. at the end of the path.
From mouse@
2013-02-21 18:17:43 +00:00
joerg 2ef880c45c No ctassert in tool build 2013-02-21 16:21:20 +00:00
christos 43318fcb2c Minor nits, and make it compile in FreeBSD (NBBY needs sys/params.h) 2013-02-20 20:27:42 +00:00
christos 963defd907 we don't have multibyte.3 (yet) 2013-02-20 20:05:26 +00:00
tron d352d77a08 Don't declare a variable inside a "for" construct because it breaks the
tool build which doesn't use C99.
2013-02-20 19:59:34 +00:00
wiz 8c68be56af Sort SEE ALSO.
XXX: multibyte(3) is dangling.
2013-02-20 19:49:26 +00:00
christos 3e6d0c8c98 Make the masks 64 bit wide so that they fit 6 character wide conversions.
Explain what's wrong with MB_LEN_MAX currently.
2013-02-20 18:40:49 +00:00
riz 6948e65203 Initialize 'clen' to 0, to avoid "may be used uninitialized" warning. 2013-02-20 18:09:13 +00:00
christos 1ee549bd74 Fix whitespace 2013-02-20 17:15:08 +00:00
christos 88d1b254b8 More fixes from J.R. Oldroyd. We introduce a new function that can
retrieve and return if there has been a conversion error, so that
it can keep performing char-by-char processing if a multi-byte
conversion occurred. Also some more code cleanups in the "extra"
processing.
2013-02-20 17:01:15 +00:00
christos 66ae8c4557 More fixes from: J.R. Oldroyd
- The input loop control that I changed yesterday to:
	while (mbslength >= 0) {
  There are circumstances where this causes an extra \000 to
  be added at the end of some tests.  This error was showing
  in my own tests here, but I did not notice it yesterday.
  (I really need to add my tests to the test suite, catching
  every error by eye is hard.)  To fix, I've now changed the
  code to increment mbslength only if mbslength == 1 to start
  with.  (Note that this check for "== 1" is why the arg to
  strvisx() in vis(1) must be 1, not mbilen.)

- The cast sequence when manually inserting bytes after a
  multibyte conversion error:
	*src = (wint_t)(u_char)*mbsrc;
  is wrong.  This is causing problems in the case when an
  8859-1 input string is processed in the UTF-8 locale.
  It needs to be:
	*src = (wint_t)*mbsrc;
  Without the (u_char) all the locale mismatch combinations
  then work.

- The code:
	if (mblength < len)
		len = mblength;
  needs to be there.  It resets len for the single character
  input case after we've actually processed two input
  characters (c and nextc) because we incremented mbslength
  at the start of the loop.  Without this code, single
  character conversions end up with a \000 or other byte
  appended.
2013-02-15 00:28:10 +00:00
christos c64f43b851 off by one. 2013-02-14 13:57:53 +00:00
wiz 0dab657ed9 Mark up LC_CTYPE as environment variable. 2013-02-13 22:19:48 +00:00
christos b4ca5d44a0 remove patch botches. 2013-02-13 22:19:18 +00:00
christos bab4584669 multi-byte doc from J.R. Oldroyd 2013-02-13 22:17:12 +00:00
christos 7ac573dac7 Fix from J.R. Oldroyd for wide chars > 2 2013-02-13 22:15:43 +00:00
christos a41a849901 Handle invalid character sequences. 2013-02-13 15:22:09 +00:00
pooka a42a57f022 Match prototype with reality to fix tool build on platforms where
wint_t != int.
2013-02-13 12:15:09 +00:00
christos 6f46fd439e explain we we want wide character support here. 2013-02-13 04:58:17 +00:00
christos ec33e596f5 Wide char support from J.R. Oldroyd 2013-02-13 04:49:59 +00:00
christos 7c894664c7 Instead of changing the code to match the documentation, change the documentation
to match the code. NOCHECK is used only by csh(1) and csh(1) is too broken for
words (histchars quoting is "special").
2012-12-27 21:17:47 +00:00
christos 769edb4d8a Do as the man page says, and for GLOB_NOCHECK return the original pattern,
not a modified version with the backslash characters removed.
2012-12-18 01:39:56 +00:00
wiz f1de633660 Add article. Remove trailing whitespace. 2012-12-15 07:34:36 +00:00
wiz 9e04985eb5 Add article. 2012-12-15 07:34:24 +00:00
matt 4e8ff3d837 Since the struct is const, no reason for the name member to be const. 2012-12-15 04:29:53 +00:00
uwe 4302f11726 Add BUGS section that explains that names VIS_HTTP1808 and VIS_HTTP1866
are wrong (hi, christos).

ok christos@
2012-12-15 02:38:46 +00:00
uwe dafbf6787b RFC 1866 does not define any "URI encoding". It defines HTML 2.0 that
includes SGML numerical character references (&#nnn;) and entity
references (&foo;) for Added Latin 1 and a subset of Numeric and
Special Graphic.
2012-12-15 02:08:13 +00:00
uwe 6e92cc1004 Minor markup fixes. 2012-12-15 01:50:06 +00:00
uwe 1ace9ea358 Add RFC 2045 (for VIS_MIMESTYLE) to "SEE ALSO".
Use space between "RFC" and the number.
2012-12-15 01:19:32 +00:00
uwe e7511e034d Misc formatting fixes. 2012-12-15 01:04:02 +00:00
uwe 1b908ff925 Typos: fix -> fit; length size -> size. 2012-12-15 01:02:26 +00:00
uwe df29ecae5b Fix pasto: VIS_MIMESTYLE produces =XX, not %XX 2012-12-15 00:48:19 +00:00