Make hostname parameter const char *. Added a new "ASCII must not be
authorDarin Adler <darin@src.gnome.org>
Fri, 8 Feb 2002 19:57:35 +0000 (19:57 +0000)
committerDarin Adler <darin@src.gnome.org>
Fri, 8 Feb 2002 19:57:35 +0000 (19:57 +0000)
commit4c9d538fc8195904f1dd89fa6bdc95eac0c0103e
tree701edc917680a7d09383f86e9ce2188d1e17521d
parent31e7c4b6fbd91ebe7eeea0e9bcff9cb09a6492a3
Make hostname parameter const char *. Added a new "ASCII must not be

* glib/gconvert.h: Make hostname parameter const char *.
* glib/gconvert.c: (g_unescape_uri_string): Added a new
"ASCII must not be escaped" feature, and some missing error
checking.
(is_escalphanum): New.
(is_escalpha): New.
(hostname_validate): New.
(g_filename_from_uri): Don't allow hostnames to include
escaped ASCII, validate hostnames with the new
hostname_validate.
(g_filename_to_uri): Validate hostnames with the new
hostname_validate.

* tests/uri-test.c: Updated tests to reflect the hostname
validation changes above.

* glib/gdate.c: (g_date_fill_parse_tokens): Remove the
<ctype.h> include and do isdigit -> g_ascii_isdigit.
12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gconvert.c
glib/gconvert.h
glib/gdate.c
tests/uri-test.c