lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> If I do:
> 
> >lua -e "utf8=nil collectgarbage 'collect' print(collectgarbage 'count')"
> 
> Would the utf8 library be unloaded, and I should see the unloaded memory
> usage?

You may need to unrequire utf8:
	http://lua-users.org/lists/lua-l/2012-12/msg00883.html

So this will probably work:
	lua -e "utf8=nil package.loaded.utf8=nil collectgarbage 'collect' print(collectgarbage 'count')"