diff --git a/index.html b/index.html index 24948c1..60ce845 100644 --- a/index.html +++ b/index.html @@ -35,8 +35,8 @@ sequence of corresponding characters in another codeset. The codesets are those specified in the iconv.new() call that returned the conversion descriptor, cd.

-

Lua-iconv 6 and later *requires* Lua 5.1. If you are using Lua 5.0, please -use the first release (lua-iconv-r1). +

Lua-iconv 7 *requires* Lua 5.1 or Lua 5.2. For Lua 5.0, use the first +release (lua-iconv-r1).

Details on iconv may be obtained in the Open Group's interface definition (http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.h.html). @@ -45,9 +45,9 @@ use the first release (lua-iconv-r1).

Download and installation

-

Lua-iconv can be obtained from its LuaForge project page -(http://luaforge.net/projects/lua-iconv/), from a LuaRocks server or from -some Linux distributions which already provide it (eg. Debian). +

Lua-iconv can be obtained from its GitHub project page +(https://github.com/ittner/lua-iconv/downloads), from a LuaRocks server or +from some Linux distributions which already provide it (eg. Debian).

Unless you downloaded a compiled package, you must build the library for your system. If you have LuaRocks installed, all the process is automatic; @@ -63,7 +63,7 @@ untar the distribution package and, within the program directory, type:

    make install
 
 

as root. The library will be compiled and installed on the in the correct -path (which is defined in lua5.1.pc). Compiling on systems without pkg-config +path (which is defined in lua5.x.pc). Compiling on systems without pkg-config requires manual changes in the Makefile (this includes Windows).

@@ -71,9 +71,9 @@ requires manual changes in the Makefile (this includes Windows).

Loading and initialization

Lua-iconv is a shared library that must be loaded in the Lua interpreter -before use. From Lua 5.1 and later, you can simply do a +before use. You can simply do a

-
    require "iconv"
+
    local iconv = require("iconv")
 
 

call to load up the library (that, of course, must be installed in a directory from package.cpath). @@ -112,6 +112,10 @@ directory from package.cpath). iconv.ERROR_INCOMPLETE An incomplete character was found in the input sequence. + iconv.ERROR_FINALIZED + Trying to use an already-finalized converter. This usually means + that the user was tweaking the garbage collector private methods. + iconv.ERROR_UNKNOWN There was an unknown error. @@ -122,7 +126,7 @@ directory from package.cpath). and commercial purposes at absolutely no cost. There are no royalties or GNU-like "copyleft" restrictions. The legal details are below:

-
   Lua-iconv is (c) 2005-10 Alexandre Erwin Ittner
+
   Lua-iconv is (c) 2005-11 Alexandre Erwin Ittner
 
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the