It was thus said that the Great Hisham once stated:
> On 19 April 2014 21:29, Sean Conner <s...@conman.org> wrote:
> >
> > I've just finished writing the rockspec for org.conman.iconv, a wrapper
> > for the iconv() library call to transform strings from one character set to
> > another.
> >
> > Yes, the actual module is called "org.conman.iconv". The modules I write
> > I usually stick under the "org.conman" namespace and while this didn't go
> > over that well on the main Lua mailing list, it wasn't because of the
> > concept (namespaces are good) but the actual namespace used (org.conman).
> > I'm not sure how people here will react though.
>
> I see absolutely no problem with that. The Lua world handles
> namespaces too naively, and that has led us to clashes in the past,
> and with core Lua even! Remember that in Lua 5.2pre bit32 was called
> bit? And now there are already `utf8` modules out there that are about
> to clash with Lua 5.3.
Thanks.
But I did find a bug with the module, and I already have an update. Sigh.
Rockspec attached.
-spc
package = "org.conman.iconv"
version = "1.1.1-1"
source =
{
url = "https://raw.github.com/spc476/lua-conmanorg/iconv-1.1.1/src/iconv.c"
}
description =
{
homepage =
"https://github.com/spc476/lua-conmanorg/blob/iconv-1.1.1/src/iconv.c",
maintainer = "Sean Conner <s...@conman.org>",
license = "LGPL",
summary = "Lua wrapper for IConv",
detailed = [[
A Lua module that wraps the iconv library call. It's simple to use:
iconv = require "org.conman.iconv"
trans = iconv.open("iso-8859-1","utf-8") -- from ISO-8869-1 to UTF-8
x = This is \255 test" -- in ISO-8869-1
y = trans(x) -- to UTF-8
]]
}
dependencies =
{
"lua ~> 5.1"
}
external_dependencies =
{
ICONV = { header = "iconv.h" }
}
build =
{
type = "builtin",
copy_directories = {},
modules =
{
['org.conman.iconv'] = "iconv.c"
},
}
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers