Menu

Tree [3d014c] master /
 History

HTTPS access


File Date Author Commit
 .gear 2009-09-05 Vitaly Lipatov Vitaly Lipatov [463cad] new version, build via gear
 docs 2005-04-11 Pavel Vainerman Pavel Vainerman [f65d1a] Включена настройка для генерирования документац...
 examples 2008-06-24 Vitaly Lipatov Vitaly Lipatov [1f862e] set 0xb00 archive type for our packages
 lib 2009-09-05 Vitaly Lipatov Vitaly Lipatov [b614b2] fix warnings
 libhi 2005-07-21 Vitaly Lipatov Vitaly Lipatov [6c1c04] in developing
 profile 2006-01-03 Vitaly Lipatov Vitaly Lipatov [2a3be1] changes for updated version 0.2.3 with new nats...
 src 2009-09-05 Vitaly Lipatov Vitaly Lipatov [b614b2] fix warnings
 tests 2009-09-05 Vitaly Lipatov Vitaly Lipatov [b614b2] fix warnings
 .gitignore 2009-09-05 Vitaly Lipatov Vitaly Lipatov [3d014c] add gitignore
 AUTHORS 2005-02-19 Vitaly Lipatov Vitaly Lipatov [182f98] Prerelease 0.0.1
 COPYING 2005-02-19 Vitaly Lipatov Vitaly Lipatov [182f98] Prerelease 0.0.1
 ChangeLog 2008-02-14 Vitaly Lipatov Vitaly Lipatov [841512] update files
 INSTALL 2009-09-05 Vitaly Lipatov Vitaly Lipatov [463cad] new version, build via gear
 Makefile.am 2005-04-10 Pavel Vainerman Pavel Vainerman [29cafb] Подключение makefile-а для генерирования докуме...
 NEWS 2008-02-14 Vitaly Lipatov Vitaly Lipatov [841512] update files
 README 2006-03-11 Vitaly Lipatov Vitaly Lipatov [24552b] commit changes
 README-ru.html 2005-02-27 Vitaly Lipatov Vitaly Lipatov [3edd92] update for 0.1.0
 TODO 2006-03-13 Vitaly Lipatov Vitaly Lipatov [a0e050] fixes before beta release
 acinclude.m4 2005-02-23 Vitaly Lipatov Vitaly Lipatov [85e08d] add python detect
 autogen.sh 2009-09-05 Vitaly Lipatov Vitaly Lipatov [463cad] new version, build via gear
 configure.ac 2009-09-05 Vitaly Lipatov Vitaly Lipatov [463cad] new version, build via gear
 libnatspec.pc.in 2005-02-22 Vitaly Lipatov Vitaly Lipatov [a1e8e9] update for new version
 libnatspec.spec 2009-09-05 Vitaly Lipatov Vitaly Lipatov [463cad] new version, build via gear
 natspec.m4.in 2006-03-13 Vitaly Lipatov Vitaly Lipatov [f7f4aa] fix description

Read Me

    LIBNATSPEC
	The Nation Specifity Library
	Vitaly Lipatov <lav@etersoft.ru>

== About libnatspec ===

libnatspec is a collection of function for requiest various
charsets and locales for host system and for other system.
The libnatspec allows applications to be written that are
locale and system independent. Libnatspec is tries to use
user locale information if possible.
It contains table with relations between locale name and encoding
of other system. 
It tested in various OS (with GCC installed):
 + ALT Linux 2.4 Master (x86)
 + Debian GNU/Linux 3.0 (Alpha)
 - Solaris SunOS 5.9 (Sparc/x86) (missed libiconv during linking)
 ? Slackware (x86)
 + Mandrake (x86)
 + RedHat (x86)
 ? ASPLinux (x86)
 - FreeBSD 4.10 (x86) (missed popt)
It is not tested in other Unix-like system yet.

It has been tested with various Linux programs/servers:
 + mount
 + mkisofs / isoinfo
 + smbmount
 + submount (subfs)
 - smbd/nmbd/swat/smbclient

This distribution contains library, header files and binding
to other languages as python (--with-python option for configure)

Please if you discover some bug or misfunction of the natspec library
on your system, email me about it.

=== Installation ===

Installation instructions are found in INSTALL.
For RPM-based system you can use libnatspec.spec as an example.

=== More Information ===

LIBNATSPEC is at sourceforge.net called as natspec project.
libnatspec also has a web page, at http://etersoft.ru/natspec
or http://natspec.sourceforge.net

New versions of the package can be found on the ftp site
ftp://ftp.altlinux.ru/pub/people/lav/natspec or the http site
http://etersoft.ru/download/natspec

libnatspec may be freely distibuted and modified in accordance with
the GNU Lesser General Public License. Examples in the libnatspec
distribution can fall under different licenses;
see the example/LICENSE file and individual files for details.

The person for contact is Vitaly Lipatov <lav@etersoft.ru>

=== Examples of use ===

==== Convert files from other system to our one ====

// Get the filename encoding in your system
const char *fileenc = natspec_get_filename_encoding("");

// Get the charset in other system WIN
const char *win_cs = natspec_get_charset_by_locale(NATSPEC_WINCS,"");

// Do conversion from foreign to local filename encoding
const char * unix_filename = natspec_convert(win_filename,win_cs, fileenc);


==== Using in .c files ====

#ifdef HAVE_NATSPEC
#include <natspec.h>
#endif
...
#ifdef HAVE_NATSPEC
	some with natspec using
#endif

==== Using in configure.in files ====
1. Add line with AM_PATH_NATSPEC in configure.in
it makes NATSPEC_LIBS, NATSPEC_CFLAGS variables for Makefiles
and defines HAVE_NATSPEC in config.h
2. Use option --with-natspec for configure

==== Links ====
http://www.sensi.org/~alec/locale/ About locale

07.05.2005
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.