Commit Graph

1820 Commits

Author SHA1 Message Date
Matthew Flatt
8e79dbf235 syntax-taint repairs
for problems exposed by more agressive arming of `lambda'
and `#%app'

original commit: 001cb75bac6166541c2fc6803b4e1061743cbce3
2011-08-09 16:33:17 -06:00
Matthew Flatt
4138a2dc50 add `prop:liberal-define-context'
original commit: 39a96dd699a7bb287668cf97d76698fcbb3df1aa
2011-08-09 16:33:16 -06:00
Eli Barzilay
88cec89c03 Make mzlib/etc' reprovide identity' from `racket/function'.
original commit: d952a05ea9cbc974e65dd45b04adbf752bfd3b50
2011-08-06 20:59:16 -04:00
Eli Barzilay
2757ab7d15 Add an optional path argument to `ftp-directory-list'.
original commit: 5a7ddd66114035237e29f76d9632775b9c38810c
2011-08-05 01:14:16 -04:00
Eli Barzilay
8142ffa4d9 Return a file size string when possible.
This takes the advice from
  http://files.stairways.com/other/ftp-list-specs-info.txt
further: search for the date by an explicit occurrence of a known month
name.  This means that we won't see files with bad names (they'd be
filtered out of the result), but the filtered out entries are ones that
would not be usable with `ftp-make-file-seconds'.

When the month is found, and the entry is a file, look for a number
preceding the month, and if found, return it as the file size string.
This is a minor change in the API.  (But it's probably better to either
revise it further, or eventually make it irrelevant by exposing the
interesting functionality via `net/url'.)

original commit: 6a1336e75edff75b7fc8a22a31d776acadc536eb
2011-08-05 01:14:16 -04:00
Eli Barzilay
38c93addda Removed a bunch of bytes->strings conversions since output does that anyway.
Also got rid of `filter-tcp-data', and just use `port->lines' instead.

original commit: 4daaa846369f47f9e1c43cbae22673d8fa0693ba
2011-08-05 01:14:16 -04:00
Eli Barzilay
cf2a703ad4 Make `ftp-make-file-seconds' use a correct year instead of 2002.
This function was using 2002 when there's no year...  Updated it to use
the last occurrence of the guessed date, as described at
  http://files.stairways.com/other/ftp-list-specs-info.txt

This function still looks pretty bogus -- the RFC does *not* say
anything about the format of response to `LIST', so it's whatever
semi-random thing the server does.  (The above link looks like an
attempt to fix it, but I didn't see anything more official than that.)
From some looking around, it looks like ftp clients just try a bunch of
patterns against the text.  Add also warnings in the documentation about
this.

original commit: 234015b34d43a602dfcabe9365de9027531c2f9f
2011-08-05 01:14:16 -04:00
Eli Barzilay
7d51058755 Use UTF-8 and CRLF in the ftp client
RFC 2640 specifies that all transport strings are assumed UTF-8 if they
can be parsed as such.  To make this complete it should really send a
FEAT and check that the result has "UTF8", but it's kind of redundant
since there's not much else to do if it isn't.

Also, switch to a more correct line endings of CRLF when sending
messages to the server.

original commit: ba48669ead349f3b9454ec12014f7e73d13c49c3
2011-08-05 01:14:16 -04:00
Matthew Flatt
543bfedad2 another error-message fix
original commit: 2146a020c05bb0cdc0fa9427e321ef7840e959da
2011-07-31 05:09:49 -06:00
Eli Barzilay
61d3c80212 fix error reporting in `reencode-output-port'
Closes PR 12077

original commit: 61f628f2c6cdd5ae355156f6c37b2c458af1e2c3
2011-07-25 23:46:16 -04:00
Matthew Flatt
4757e1cc6a fix error reporting in `reencode-input-port'
Closes PR 12076

original commit: e01ee43300a163bddd89240f75d3198cd9d2aa8d
2011-07-25 13:11:05 -04:00
Robby Findler
fd0971909b missed a spot in the addition of chaperone info for opt/c
original commit: 7820db9f8d37f2a65ebda21402bd551886494d64
2011-07-21 09:38:22 -05:00
Carl Eastlund
9ea5db6645 Corrected documentation of quote-module-name to indicate that it does not
produce collection and planet-relative paths on its own.  Deprecated
quote-module-path, and replaced existing uses of it with quote-module-name.

original commit: 2e6a608539f5ef39a9ff821d95163ea4660da952
2011-07-09 14:46:58 -04:00
Jay McCarthy
81f9743590 Another test that is sensitive to the contract error message text
original commit: 8da2f537fbdd47493413c3d4d2b4b8caff947123
2011-07-02 14:50:24 -07:00
Eli Barzilay
89857c786d ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Matthew Flatt
6680a2b30f add ffi/winapi; use it in mzlib/os
Closes PR 12007

original commit: 59731368fc7d90c1177c60ade3ec1f8c4fb0a4ae
2011-07-01 10:42:17 -06:00
Matthew Flatt
51afe5c7ad remove syntax certificates; add syntax taints
original commit: 1160d3df629ce65eb8fe9ebea2c33b8d4000ea50
2011-06-29 19:15:48 -06:00
Eli Barzilay
8317296e8d A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)

original commit: 40124a0619da5e187d95aeb1dde237f05d6f9c6b
2011-06-28 02:01:41 -04:00
Eli Barzilay
7775f475ee Avoid unintended pun.
original commit: a3c21be7f6f1c83eba998d8ecad32d45c2889ef7
2011-06-23 18:19:32 -04:00
Matthew Flatt
69d0cb447a adjust and document net/url HTTPS support
original commit: f3da5f7fd886c27e38e438f43d305fa1912ac5cb
2011-06-20 08:00:43 -06:00
Eli Barzilay
a14fe66f94 Hack: make the `net/url' implementation handle both "http" and "https" urls, dispatching to the plain tcp functions or the ssl one.
(See "HACK" comment for a description on how this is done.)

original commit: e74f70393fcc27775b80a2bf18535082563ae779
2011-06-20 06:30:09 -04:00
Eli Barzilay
760adf6428 Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)

original commit: debd1f9f1e6899e2a7e4ab5de929a49df490b5c7
2011-06-20 04:27:14 -04:00
Matthew Flatt
785cd52135 fix `make-limited-input-port' limit tracking for committed peeks
and make the port thread-safe

original commit: 7089a17ba2931b1be04c9eec68c3bef7967d0ca7
2011-06-17 11:14:50 -06:00
Matthew Flatt
39d1cf4635 support progress evts in result of `make-limited-input-port'
and also adjust initial position in various port constructions
 to use `file-position' instead of `port-next-location'

original commit: a9190621439b8bf8ecace2fd9e81217dcaed808d
2011-06-16 09:18:47 -06:00
Matthew Flatt
670f2ea435 fix interaction of `port-commit-peeked' and port positions
--- includes a small hack to the `make-input-port' protocol
     to specially handle a byte-string result as "true"
     from the `commit' proc

original commit: 83d002a9aa2f000bdb4a6d2ab3664cd5a7c56a82
2011-06-16 08:17:14 -06:00
Matthew Flatt
bc780cbb16 fix arity errors detected by optimizer
original commit: 479e8cdc27e1c1b307fca2bed0866ec36d10bb52
2011-05-15 19:42:22 -06:00
Eli Barzilay
f4c0fcaea0 Improved code for `form-urlencoded->alist', should be faster too.
original commit: 8b48802440ea08e237b28f823fd2de57740d7c62
2011-05-03 18:20:09 -04:00
Robby Findler
2fd831d01e made sure that all of the mzlib/contract exports are documented
(some by using racket/contract exports and some by adding
   more docs)

original commit: 1fdfd8406df526cacf803e037c1f69b29d916828
2011-04-25 11:54:14 -05:00
Robby Findler
0604c1fe24 added the racket/contract/combinator library,
and documented and adjusted these libraries:
     racket/contract/base
     racket/contract/exists
     racket/contract/parametric (renamed from exists)
     racket/contract/region

original commit: 21cbd9ad81eb35dc4d39d6063db25fcb1cc94bbc
2011-04-25 11:51:44 -05:00
Robby Findler
fb93091a62 fix up contract test suites
original commit: 8afeed8c663242159ac08ac043ccf860779ddd91
2011-04-16 07:55:49 -05:00
Robby Findler
e9a9f4e656 start fixing up the exports to match the docs for racket/contract
original commit: 2bceaec03a0547d2949c6346115b36ed2389834f
2011-04-14 15:27:27 -05:00
Ryan Culpepper
65864ac0a3 moved unstable/{location,srcloc} to syntax collection
fixed bugs in unstable/wrapc

original commit: 7828a7bfa78ac6591ea7074cdf85f3cd0ca12baf
2011-04-08 08:25:22 -06:00
Ryan Culpepper
204edd24c6 created racket/syntax from parts of unstable/syntax
original commit: 73ab1675222761363f6633061bc1156189f4ba59
2011-04-07 09:47:20 -06:00
Robby Findler
6ae9dcae4a rewrote uses of mzlib/contract into racket/contract
(and other minor rackety when the occasion arose)

original commit: e8eea05afc79e82b465ce5d95cefc36b59ea42eb
2011-03-31 18:21:11 -05:00
Robby Findler
124283c808 removed the re-providing from internal files in the contract impl.
original commit: b8c7a753d3e6c06190cbe3560610710c48131960
2011-03-28 23:04:36 -05:00
Eli Barzilay
5bd3e1f45a Clarify licensing of deflate code.
A similar comment holds for inflate.rkt in the same place, but since
that file says "Not copyrighted ..." then there doesn't seem to be an
issue that needs clarification.

original commit: f6f7e4eb3502d92569c362b4fb41f45a587fd544
2011-03-03 11:10:11 -05:00
Matthew Flatt
b3ab363c7e racket/system: fix problems with checking and empty-string arguments
original commit: 33d01a681e248dfdbef767d631bed75a02395e41
2011-02-20 11:25:25 -07:00
Eli Barzilay
5100aad081 Fix error message, use a faster regexp test to search for NULs, forbid empty byte strings.
original commit: fca0ed2111300dcbdb3825bdd319ae284d4ac22f
2011-02-20 12:47:53 -05:00
Matthew Flatt
5b012ac355 racket/system: fix argument checking with 'exact
original commit: 010e6fc2a43ad458f167a6e7d7b55f590b2a42a8
2011-02-19 08:43:06 -07:00
Matthew Flatt
99de1ca5e8 generalizations to `subprocess' & company
- allow byte strings in more places
  - allow stderr spec to be 'stdout to redirect stderr to stdout
 Closes PR 11711

original commit: b4056373be7f869e50e14122c9cd39eaad5148df
2011-02-19 08:30:34 -07:00
Stephen Chang
92dc246a0e add 125 to list of expected return codes when receiving data in net/ftp
original commit: c52b70244d23d77f1813b981939d69a8cea0b125
2011-02-08 13:17:14 -05:00
David Van Horn
5181e32581 Fixes more spelling errors.
original commit: 760a58b65df2b91010d2bcc2739ddab2a4489729
2011-02-04 19:44:13 -07:00
David Van Horn
61f9f1203b Fixed various spelling errors.
original commit: c9519fd11300b07292df8619e86f48533eff6e4d
2011-02-03 17:42:33 -05:00
Matthew Flatt
ef64dab201 add filter-read-input-port' to racket/port'
original commit: ce2d6030c73e0a04a2a5661a035c0e0d86d9c999
2011-01-24 19:47:20 -07:00
Matthew Flatt
7c4fa8d61b add argument to `regexp-try-match' to match docs
Closes PR 6579 --- which was actually about the
 now next-to-last argument, but close enough

original commit: d5fdee7e0691f36f2d102aea81f74f579d28fe03
2011-01-17 15:18:05 -07:00
Matthew Flatt
fafa721d56 extend date->seconds' and find-seconds' to work with UTC
Closes PR 6137

original commit: 113e49aa5b3282332952aad551e8ad7456079715
2011-01-16 17:53:30 -07:00
Matthew Flatt
587e9e6f82 fix shared' for #:auto' fields and constructors without `make-'
Closes PR 11588
 Closes PR 11591

original commit: 655f6045a286f405f3635357795e68a47c57d21d
2011-01-05 13:52:11 -07:00
Robby Findler
54b7b650cc changed real-in to be an alias for between/c
original commit: 51ad306af256fe6a1742c99d2caffc062cdfc6e0
2011-01-04 15:40:32 -06:00
Robby Findler
709cffad7a new attempt at contract violation error messages
original commit: bb9bd1b07a29fd8773f7891e0923c89db20a5397
2010-12-22 10:39:59 -06:00
Robby Findler
2794f54cab update the mzlib contract test suite to the new error messages
original commit: 94ebb1f31745b9969774e37753e77137223029fc
2010-12-10 06:57:27 -06:00