Call setlocale to make iconv work, reported by
[libidn.git] / NEWS
blob69e4c867439b33471609ed0e4e30fe63c1fa6b18
1 Libidn NEWS -- History of user-visible changes.                 -*- outline -*-
2 Copyright (C) 2002, 2003, 2004 Simon Josefsson
3 See the end for copying conditions.
5 * Version 0.5.1 (unreleased)
7 ** Cross compile builds should work.
8 It should work for any sane cross compile target, but the only tested
9 platform is uClibc/uClinux on Motorola Coldfire.
11 ** API and ABI is backwards compatible with the previous version.
13 * Version 0.5.0 (released 2004-06-26)
15 ** Functions to detect "normalization problem sequences" as per PR-29 added.
16 See the new chapter "PR29 Functions" in the manual
17 (doc/libidn.{ps,pdf,html}) for more information and the background
18 story.  An external link that discuss the problem is
19 <http://www.unicode.org/review/pr-29.html>.
21 ** More translations.
22 Added Esperanto (by Edmund GRIMLEY EVANS).
24 ** API and ABI is backwards compatible with the previous version.
25 pr29.h: ADD.  Prototypes for PR29 types and functions.
26 pr29_4, pr29_4z, pr29_8z: ADD.  New API entry points for PR29 functions.
27 Pr29_rc: ADD.  New error code enum type for PR29 functions.
29 * Version 0.4.9 (released 2004-06-11)
31 ** The Java library (java/libidn-*.jar) is included in the distribution.
33 ** JavaDoc manuals (doc/javadoc/) are included.
35 ** API and ABI is backwards compatible with the previous version.
37 * Version 0.4.8 (released 2004-06-01)
39 ** The Java source code is actually included in the distribution.
41 ** API and ABI is backwards compatible with the previous version.
43 * Version 0.4.7 (released 2004-05-31)
45 ** The Java port should now be functional, contributed by Oliver Hitz.
46 See the new section "Java API" in the manual for more information.
48 ** API and ABI is backwards compatible with the previous version.
50 * Version 0.4.6 (released 2004-05-24)
52 ** The header file idn-free.h is actually installed by 'make install'.
54 ** API and ABI is backwards compatible with the previous version.
56 * Version 0.4.5 (released 2004-05-21)
58 ** In IDNA ToUnicode, a `free' on a stale pointer fixed by Ulrich Drepper.
60 ** Several memory leaks fixed by Ulrich Drepper.
62 ** Added more SASLPrep and NFKC test vectors.
64 ** Automake 1.8.4 is used.
66 ** API and ABI is backwards compatible with the previous version.
67 idn_free: ADD.  Wrapper around system `free'.
68 idn-free.h: ADD.  Prototype for `idn_free'.
69                 See idn-free.h for discussion.  The interface is
70                 currently not documented.  Comments and feedback is
71                 appreciated.
73 * Version 0.4.4 (released 2004-04-29)
75 ** Fixed two bugs in iSCSI definition, syncing with newly published RFC 3722.
76 The first bug was an omission of prohibiting the characters in C.1.1,
77 C.1.2 and C.7 (space characters and characters that are inappropriate
78 for canonical representation).  The second was a bug in the definition
79 of the table, causing the entire table to be skipped, of the special
80 prohibited output character table defined in RFC 3722 (see section 6,
81 the characters in the table are various ASCII characters and U+3002).
83 ** A few test vectors for iSCSI were added.
85 ** The self tests are linked with libtool -no-install to avoid wrapper script.
87 ** Separated self test utilities into a separate library, shared by all tests.
89 ** More translations.
90 Added Romanian (by Laurentiu Buzdugan).
92 ** API and ABI is backwards compatible with the previous version.
94 * Version 0.4.3 (released 2004-04-22)
96 ** Fixed a bug in table processing code to prohibit control characters.
97 The problem was that the code used a code point of 0 to indicate end
98 of table, but if (as for table C.2.1) a range starts with 0, this
99 logic would fail.  The end-of-table test is now that both the start
100 and end code points of the range is 0.  Table C.2.1 is responsible for
101 prohibiting non-ASCII control characters, i.e. ASCII 0-31 and 127.
102 Before, libidn silently accepted such strings without complaining.
104 ** A few test vectors for SASLprep were added.
106 ** The pkg-config script no longer include a -R parameter.
108 ** More translations.
109 Added Dutch (by Elros Cyriatan), and German (by Roland Illig).
111 ** API and ABI is backwards compatible with the previous version.
113 * Version 0.4.2 (released 2004-03-20)
115 ** A Punycode implementation in Java was added, by Oliver Hitz.
116 Eventually hopefully a StringPrep, Nameprep and IDNA implementation
117 will be added as well.  Currently you need to specify --enable-java to
118 enable the Java interface.  The Java sources (below java/) are
119 compiled into byte-code (not native code) into a JAR library.
121 ** More translations.
122 Added Danish (by Morten Bo Johansen), French (by Michel Robitaille),
123 Polish (by Jakub Bogusz), and Serbian (by Aleksandar Jelenak).
125 ** Norwegian TLD table added, by Thomas Jacob.
127 ** API and ABI is backwards compatible with the previous version.
129 * Version 0.4.1 (released 2004-03-08)
131 ** The user messages from the command line utility are now translated.
132 Currently English and Swedish is supported.
134 ** Logic of stringprep_locale_charset modified.
135 Future versions will use, in order, $CHARSET iff defined, nl_langinfo
136 (CODESET) iff working, or fall back to returning "ASCII".  Earlier it
137 attempted to guess the system locale, in contrast with the current
138 application's locale, via some setlocale save/set/reset magic.  This
139 change may require you to invoke setlocale() in your application,
140 which is (should be) required for non-ASCII to work anyway.  Based on
141 discussion with Ulrich Drepper.
143 ** The command-line utility now invoke setlocale (LC_ALL, "") at startup.
145 ** Fixed SASLprep tables to prohibit non-ASCII space in output.
146 Non-ASCII space has always been mapped to ASCII space, so it is not
147 clear this really have any effect, but the specification require it.
149 ** Building Libidn as part of GLIBC has been updated.
150 Refer to libc/README for more information.  Incidentally, GLIBC in CVS
151 now include a copy of Libidn.
153 ** API and ABI is backwards compatible with the previous version.
154 IDNA_DLOPEN_ERROR: ADD.  Only used internally by Libidn in libc.
156 * Version 0.4.0 (released 2004-02-28)
158 ** Support for TLD restrictions on IDN strings, contributed by Thomas Jacob.
159 Many TLDs restrict the set of characters that can be used, from the
160 full Unicode 3.2 range that is normally available.  This contribution
161 make it possible for you to test strings for TLD conformance locally.
162 The code can be disabled by --disable-tld.  If enabled (the default),
163 the new API "tld.h" is installed which can be used to check a string
164 for conformance to TLD specific rules.  This add a new self test, and
165 a new chapter in the manual.  People responsible for maintaining TLD
166 tables are hereby encouraged to contribute them (under reasonable
167 licensing terms) for inclusion in future versions of Libidn.  Be
168 warned that the API for TLD checking may change throughout the 0.4.x
169 series as we get feedback on it.
171 ** Kerberos 5 stringprep profile macro is no longer documented.
172 The macro itself will probably be removed in the future, if the
173 specification is dropped from the Kerberos WG agenda.
175 ** API and ABI is backwards compatible with the previous version.
176 stringprep_kerberos5: DEPRECATED.
177 Tld_table_element:
178 Tld_table:
179 Tld_rc: ADD.  New data types.
180 tld_get_4:
181 tld_get_4z:
182 tld_get_z: ADD.  New functions to extract TLD from string.
183 tld_get_table:
184 tld_default_table: ADD.  New functions to get TLD table from TLD name.
185 tld_check_4t:
186 tld_check_4tz: ADD.  New function to provide core TLD operations.
187 tld_check_4:
188 tld_check_4z:
189 tld_check_8z:
190 tld_check_lz: ADD.  New functions that combine all TLD operations in one call.
192 * Version 0.3.7 (released 2004-01-22)
194 ** The command line parameter '--' idiom is documented.
196 ** The iSCSI stringprep profile now recognized as "iSCSI".
197 The earlier name "ISCSIprep" is still recognized, for backwards
198 compatibility.
200 ** DocBook manuals no longer included (the tools are too unstable).
202 ** API and ABI is backwards compatible with the previous version.
204 * Version 0.3.6 (released 2004-01-06)
206 ** The manual now contain a troubleshooting section for the command line tool.
208 ** The PHP interface pass the string directly on the command line.
210 ** The macro that create 'idn-int.h' has been updated to latest version.
212 ** API and ABI is backwards compatible with the previous version.
214 * Version 0.3.5 (released 2003-12-15)
216 ** The program 'idn' accepts input strings directly on the command line.
218 ** The program 'idn' defaults to --idna-to-ascii if no parameter is given.
220 ** The program 'idn' now print user instructions before waiting for input.
222 ** DocBook HTML output not included any longer.
223 The reason is that the filenames generated by docbook2html appear to
224 be rather random, so it is difficult to maintain the Makefile.am rules
225 for them.
227 ** Autoconf 2.59, automake 1.8 and libtool from CVS is used.
229 ** API and ABI is backwards compatible with the previous version.
230 IDNA_CONTAINS_NON_LDH: ADD.  Same integer value as IDNA_CONTAINS_LDH.
231 IDNA_CONTAINS_LDH: DEPRECATED.  LDH (letter-digits-hyphens) characters
232                 are not an error, but non-LDH characters are, when
233                 IDNA_USE_STD3_ASCII_RULES is used.  The logic of the
234                 mnemonic name of this error constant was reversed.
236 * Version 0.3.4 (released 2003-11-09)
238 ** DocBook manuals in XML, PDF, PostScript, ASCII and HTML formats included.
240 * Version 0.3.3 (released 2003-10-18)
242 ** Fixed list of Stringprep profiles in 'idn --help' and 'idn.php'.
244 ** Fixed debug information in 'idn'.
246 ** Internal improvements.
247 Leads to reduced heap memory usage.  Simplified inter-dependency among
248 files in lib/* to make it easier to copy them into your project.
250 ** Debugging stringprep profile 'generic' removed.
252 ** Punycode implementation updated to rfc3492bis-00.
254 ** API and ABI is backwards compatible with the previous version.
255 stringprep_4i: NEW.
256 stringprep_4zi: NEW.
257 stringprep: CHANGED. 'profile' is marked as 'const'.
258 stringprep_profile: CHANGED. 'profile' is marked as 'const'.
259 stringprep_generic: REMOVED. Never meant for public use.
261 * Version 0.3.2 (released 2003-10-07)
263 ** SASL ANONYMOUS stringprep profile "trace" added.
264 It is equivalent to the already supported "plain" SASL ANONYMOUS
265 stringprep profile, except for the name.
267 ** API and ABI is backwards compatible with the previous version.
268 The 'in' parameter to stringprep_profile was changed from 'char*' to
269 'const char*'.
271 * Version 0.3.1 (released 2003-10-02)
273 ** Fixed handling of implicit and explicit zero-length root labels in ToASCII.
275 ** Fixed support for Hangul Syllables during Unicode NFKC normalization.
277 ** Fixed Unicode NFKC normalization of (some) BMP code points.
278 This was done by syncing the NFKC code with latest GLIB, and may have
279 fixed other bugs in the earlier versions of the updated functions.
281 ** Added more IDNA test vectors.
283 ** Emacs Lisp IDNA implementation now set the UseSTD3ASCIIRules flag.
284 This is the appropriate setting for mail-related uses of IDNA.
286 ** API and ABI is backwards compatible with the previous version.
288 * Version 0.3.0 (released 2003-09-23)
290 ** Ported to Mac OS X.
292 ** Gnulib code removed, we now assume a C89 compatible environment.
294 ** Building libidn as a libc add-on now works again.
296 ** Man pages for all public API functions are included.
298 ** Fixed bug in SASLprep profile.
300 ** API and ABI is NOT backwards compatible with the previous version.
301 All previously labeled (since 0.1.x) obsolete functions have been dropped.
302 The use of 'enum' types instead of 'int' added in 0.2.3 reverted, it
303 confused documentation generators and wasn't all that common practice.
305 * Version 0.2.3 (released 2003-08-26)
307 ** Example 4 was the same as example 3, now changed to demo ToUnicode.
309 ** Documentation improvements.
311 ** Prototype cleanups.
312 The proper enum types (Stringprep_rc, Idna_rc, etc) are now used in
313 several places where plain int where used before.  String lengths are
314 handled by (s)size_t instead of int.
316 ** API and ABI is backwards compatible with the previous version.
318 * Version 0.2.2 (released 2003-08-13)
320 ** Fixed problem with strings longer than 4GB in punycode functions.
321 The punycode code cannot handle strings longer than 4GB.  The code now
322 return PUNYCODE_BAD_INPUT on too long input, instead of failing in an
323 unknown way.
325 ** The "idn --idna-to-unicode" command now output locale encoded strings.
327 ** Build fixes, bug fixes.
329 ** API and ABI is backwards compatible with the previous version.
331 * Version 0.2.1 (released 2003-07-04)
333 ** Don't reject zero-length trailing labels as in, e.g., "www.example.org.".
334 The IDNA RFC is not clear on this topic, zero-length labels in general
335 are forbidden by the ToASCII algorithm in section 4.1 step 8, but the
336 terminology section define, inside a parenthesis, that the zero-length
337 root label is in fact not considered a label at all in IDNA.
339 ** Bug fixes.
341 ** API and ABI is backwards compatible with the previous version.
343 * Version 0.2.0 (released 2003-06-19)
345 ** Unicode code point data is now uint32_t, defined in "idn-int.h".
346 A header file "idn-int.h" is generated and installed to make sure the
347 "uint32_t" data type is available on all platforms.  The reason for
348 this change is that on 64-bit platforms, the application was required
349 to convert 32 bit integers (which is how Unicode code points are
350 typically represented) into 64 bit integers before calling libidn
351 functions.
353 ** New idna_*() functions have improved flags handling.
354 The allowunassigned and usestd3asciirules parameters were collapsed
355 into a flags parameter, that can take on the IDNA_ALLOW_UNASSIGNED and
356 IDNA_USE_STD3_ASCII_RULES values.  This allows for easier extensions
357 to support, e.g., Unicode 4.0 or RFC 952 ASCII rules checking.  Note
358 that the old entry points are unmodified (in this regard), and new
359 entry points with this modification were added.
361 ** The manual was moved into a separate directory doc/.
363 ** Bugfixes.
365 ** API and ABI is not backwards compatible.
366 In punycode.h and stringprep.h the "unsigned long" data type was
367 changed into "uint32_t", which cause a API and ABI missmatch.  For
368 idna.h, the old entry points that used "unsigned long" still exist,
369 and new entry points that uses "uint32_t" was added.  To update your
370 application, you probably only need to change "unsigned long" to
371 "uint32_t".  As a result of these changes, the shared object version
372 has been increased.
374 * Version 0.1.15 (released 2003-06-07)
376 ** Bugfixes.
378 ** API and ABI is backwards compatible with the previous version.
380 * Version 0.1.14 (released 2003-05-10)
382 ** Experimental documentation generation in contrib/doxygen/.
383 Simply invoke "doxygen" in that directory and it should build the
384 documentation.
386 ** Lisp API bug fixes.
388 ** API and ABI is backwards compatible with the previous version.
390 * Version 0.1.13 (released 2003-03-13)
392 ** Unfinished Java *.class files implementing the libidn API.
393 See the contrib/java/ directory.  It is implemented using the Java
394 Native Interface, and light initial testing indicate interoperability
395 between GCJ, IBM's JDK and Sun's JDK.
397 ** Building is now silent when gengetopt is not present.
399 ** Bug fixes.
401 ** API and ABI is backwards compatible with the previous version.
403 * Version 0.1.12 (released 2003-03-06)
405 ** Building libidn doesn't require gengetopt.
406 Warnings are still printed though.  Gengetopt will be replaced by argp
407 eventually.
409 ** Command line tool "idn" supports stringprep too.
411 ** New stringprep API entry point: stringprep_profile().
412 It takes a name of the stringprep profile as an argument instead of
413 the stringprep table structure.
415 ** stringprep_*.h are deprecated and will be removed in the future.
416 All symbols have been moved to stringprep.h.  The reasons are that (1)
417 the files typically only defined one CPP macro and exported one symbol
418 definition, which is wasteful as it generates too much work in the
419 manual, and (2) using one header file for all profiles allows easier
420 access to all stringprep profiles during runtime.  Note that the files
421 are still installed, but they only #include stringprep.h now, for
422 backwards compatibility.
424 ** GNU Libc add-on build instructions updated to GNU Libc 2.3.2.
426 ** SASLprep stringprep profile added.
428 ** An online interface to libidn written in PHP added to contrib/web/.
430 ** API and ABI is backwards compatible with the previous version.
432 * Version 0.1.11 (released 2003-02-26)
434 ** Command line application "idn" is included.
435 A simple wrapper around the library that allows you to invoke punycode
436 encoding/decoding and IDNA ToASCII/ToUnicode on the command line.
438 ** Emacs Lisp interface for punycode and IDNA included.
439 See punycode.el and idna.el.
441 ** API and ABI is backwards compatible with the previous version.
443 * Version 0.1.10 (released 2003-02-21)
445 ** idna_*_to_ace() and idna_*ace_to_*() are deprecated in favor of
446 ** idna_to_ascii_from_*() and idna_to_unicode_*_from_*() respectively.
447 The reason was that the old interfaces did not accept the
448 AllowUnassigned and UseSTD3ASCIIRules flags.  Note that the old
449 functions are not removed, but will be in the future.
451 ** IPS iSCSI stringprep profile added.
453 ** A new contrib/ directory added.
454 Currently it contains a Python interface to Libidn, contributed by
455 Stephane Bortzmeyer.
457 ** idna.h and punycode.h are now installed by "make install".
459 ** API and ABI is backwards compatible with the previous version.
461 * Version 0.1.9 (released 2003-02-20)
463 ** SASL ANONYMOUS "plain" stringprep profile added.
465 ** XMPP nodeprep profile fixed.
467 ** API and ABI is backwards compatible with the previous version.
468 For future releases, the NEWS entry will specifically mention whether
469 the C header API or library ABI backwards compatibility is affected.
471 * Version 0.1.8 (released 2003-02-14)
473 ** Portability fixes.
474 This includes not building the API Reference Manual with GTK-DOC by
475 default, if you want it use configure parameter --enable-gtk-doc after
476 making sure your gtkdoc-mkdb accept the --tmpl-dir parameter.
478 ** The type for string length variables is now (s)size_t.
479 Unfortunately this means binary shared library binary backwards
480 compatible is lost.
482 ** New nameprep test vectors.
484 * Version 0.1.7 (released 2003-02-12)
486 ** Uses official IDNA ACE prefix.
488 * Version 0.1.6 (released 2003-02-11)
490 ** Uses tentative IDNA ACE prefix.
492 ** Added XMPP Node/Resource Identifiers stringprep profiles.
494 ** Fixed prohibited character checks for bidi.
496 * Version 0.1.5 (released 2003-01-28)
498 ** The library can now be built as part of GNU Libc.
499 This is experimental and only tested against GNU Libc version 2.3.1.
500 See the libc/ directory, and libc/README in particular.
502 ** Bug fixes.
504 * Version 0.1.4 (released 2003-01-15)
506 ** Documentation fixes.
508 ** Portability fixes.
510 ** Bug fixes.
512 * Version 0.1.3 (released 2003-01-15)
514 ** Added texinfo manual.
516 * Version 0.1.2 (released 2003-01-08)
518 ** Added high-level IDNA API.
520 ** Added example3.c and example4.c demonstrating the high-level IDNA API.
522 * Version 0.1.1 (released 2003-01-08)
524 ** Added documentation using GTK-DOC.
526 ** The obsolete stringprep_utf8_to_ucs4_fast API entry point was removed.
527 By accident it was never removed in 0.1.0.
529 * Version 0.1.0 (released 2003-01-05)
531 ** Official GNU project.
533 ** Renamed from libstringprep to libidn.
535 ** Supports punycode and IDNA.  Caveat emptor: I don't use it myself.
537 ** Uses "unsigned long" for Unicode code points instead of "long".
538 Long is guaranteed to be at least 32 bits by C standards so it is
539 always sufficiently large, no need to use uint32_t and the like.
541 ** The obsolete stringprep_utf8_to_ucs4_fast API entry point was removed.
543 * Version 0.0.8 (released 2002-12-13)
545 ** Portability fixes (now works under Cygwin on Windows 2000).
547 ** Bug fixes.
549 * Version 0.0.7 (released 2002-12-09)
551 ** Apply all tables to entire strings, not just first hit.
553 ** Fix bidi infloop.
555 * Version 0.0.5 (released 2002-12-07)
557 ** Fix prohibited characters handling.
559 ** Fix bidi.
561 ** Renamed type (struct) stringprep_table_element to Stringprep_table_element.
563 ** Renamed type stringprep_profile to Stringprep_profile.
565 ** Renamed type (struct) stringprep_table to Stringprep_table.
567 ** Added more self-tests.
569 * Version 0.0.4 (released 2002-12-06)
571 ** Add unassigned code point handling, including self test cases.
573 ** Portability fixes.
575 * Version 0.0.3 (released 2002-11-30)
577 ** Exported utility function `stringprep_utf8_to_unichar', complementary
578 to existing `stringprep_unichar_to_utf8'.
580 ** Renamed `stringprep_utf8_to_ucs4_fast' to `stringprep_utf8_to_ucs4' to
581 clean up API. The old entry point is maintained for binary backwards
582 compatibility though.
584 ** The distribution is from now on signed using GnuPG.
586 ** Bug fixes.
588 * Version 0.0.2 (released 2002-11-07)
590 ** NFKC self test.
592 ** Bug fixes.
594 * Version 0.0.1 (released 2002-11-06)
596 ** Add utility functions stringprep_locale_charset(), stringprep_convert() 
597 and stringprep_locale_to_utf8 () that can be used to convert text from
598 system's locale into UTF-8, which should be done before invoking
599 stringprep().  The functions requires iconv() in the operating system.
601 ** An example program (example.c) that illustrates how libstringprep can be
602 used is included.
604 ** The pkg-config --libs output should now include necessary -R options.
606 * Version 0.0.0 (released 2002-11-05)
608 ** Initial release
610 ----------------------------------------------------------------------
611 Copying and distribution of this file, with or without modification,
612 are permitted in any medium without royalty provided the copyright
613 notice and this notice are preserved.