Tim Rühsen
25c9b462bf
Change function params to const in src/iri.[ch]
...
* iri.h, iri.c: Added const attribute for params of parse_charsset(),
check_encoding_name(), idn_encode(), idn_decode(),
remote_to_utf8(), set_uri_encoding(), set_content_encoding().
2015-07-01 17:15:10 +02:00
Ángel González
45463eaad7
Fix const usage in iri.c
...
* src/iri.c (remote_to_utf8): Do not qualify with const the output pointer.
(do_conversion): Use the provided input parameter as const.
(idn_encode): casts to remote_to_utf8 parameters are no longer needed.
* src/iri.h: Adjusted remote_to_utf8 prototype.
* src/url.c: It is no longer necessary to cast new_url to const char.
2015-04-10 10:23:01 +02:00
Giuseppe Scrivano
16f1fb1d1f
maint: update copyright year ranges to include 2015
2015-03-09 16:32:01 +01:00
Gisle Vanem
9df2250f4c
idn: use idn_free() to free allocated libidn memory
...
xfree() might crash on libidn memory on Windows.
From 'man idn_free':
"Under Windows, different parts of the same application may use different
heap memory, and then it is important to deallocate memory allocated within
the same module that allocated it. This function makes that possible."
2015-02-18 12:50:57 +01:00
Giuseppe Scrivano
244b732e0a
Silent compiler warning.
2011-03-21 13:41:41 +01:00
Giuseppe Scrivano
024683705d
Silent compiler warning.
2011-03-21 13:14:20 +01:00
Giuseppe Scrivano
2f6aa1d741
mass change: update copyright years.
2011-01-01 13:19:37 +01:00
Giuseppe Scrivano
8f91cbd2d6
Remove definition of unused symbols.
2010-05-24 12:12:41 +02:00
Giuseppe Scrivano
293008f682
Mass update copyright years.
2010-05-08 21:56:15 +02:00
Micah Cowan
b9e9ad65cc
Ran update-copyright.
2009-09-04 00:13:47 -07:00
Micah Cowan
efd514c825
Fixes for when IRIs are disabled.
2009-07-03 22:36:14 -07:00
Micah Cowan
44cde778dd
Fix Test-iri-list.
2009-06-29 01:07:12 -07:00
Saint Xavier
66dd4bda74
IRI requirement: do not percent-encode already percent-encoded values (try1)
2008-09-27 11:13:21 +02:00
Xavier Saint
c74bc2da70
Some cleanups in iri.c
2008-08-03 22:30:12 +02:00
Xavier Saint
b967d49f79
opt.remote_encoding should not override opt.locale, add a force arguments to set_uri_encoding()
2008-07-30 10:15:55 +02:00
Saint Xavier
8c513ef487
Fix numbers of arguments of the no-op macro idn_encode()
2008-07-24 14:34:48 +02:00
Saint Xavier
d82f80ecab
Change global variable model for state-object
2008-07-24 00:56:29 +02:00
Saint Xavier
ee8ff7488f
Add a missing no-op macro for set_ugly_no_encode()
2008-07-20 19:31:09 +02:00
Saint Xavier
169a16fc7d
Make get_utf8_encode() directly aware of ugly_no_encode and remove get_ugly_no_encode()
2008-07-20 19:29:51 +02:00
Saint Xavier
1e9ced0170
Get rid of the supplementary bool pointer in url_parse () arguments; UGLY :)
2008-07-20 18:47:52 +02:00
Saint Xavier
9a2ea3938d
Basic IDN/IRI support
2008-07-20 13:10:02 +02:00
Saint Xavier
99396653c2
Show also the hostname in the locale when possible
2008-07-02 16:37:28 +02:00
Saint Xavier
d687972c50
Fix copyright year and some GNU coding style
2008-07-01 19:28:24 +02:00
Saint Xavier
5bb11da009
Basic support of IRIs.
2008-06-26 17:59:07 +02:00
Saint Xavier
e6376b4743
Introduce a new function check_encoding_name() for doing a basic check on encoding name validity
2008-06-20 00:33:02 +02:00
Saint Xavier
2baf323933
Introduce find_locale() to find out local system encoding.
2008-06-19 23:10:06 +02:00
Saint Xavier
13fec85566
Add "content-type" meta tag parsing for retrieving HTML page encoding.
2008-06-19 22:33:38 +02:00
Saint Xavier
ed558a83f6
The prefered way is to avoid #ifdef flooding, so take it that way. Introduce iri.c and iri.h for achieving it
2008-06-19 22:07:03 +02:00