glib.h New functions for conversion between UTF-8 and the encoding

2000-02-01  Tor Lillqvist  <tml@iki.fi>

* glib.h
* gstrfuncs.c (g_filename_to_utf8, g_filename_from_utf8): New
functions for conversion between UTF-8 and the encoding expected
by C runtime functions like open() and stat(), and returned by
readdir().

Implement them on Win32 where we use the system "ANSI" codepage,
which might be single-byte or double-byte. On Unix, just skip the
issue for now and provide dummy implementations that return a copy
of the argument.

* README.win32
* build-dll
* glib.def: Minor updates.
This commit is contained in:
Tor Lillqvist
2000-02-02 23:39:32 +00:00
committed by Tor Lillqvist
parent 86b2741c1e
commit c22cf34e92
16 changed files with 637 additions and 10 deletions

View File

@@ -88,6 +88,8 @@ EXPORTS
g_direct_equal
g_direct_hash
g_dirname
g_filename_from_utf8
g_filename_to_utf8
g_free
g_get_current_dir
g_get_current_time
@@ -348,7 +350,6 @@ EXPORTS
g_source_remove
g_source_remove_by_source_data
g_source_remove_by_user_data
g_spaced_primes_closest
g_static_mutex_get_mutex_impl
g_static_private_get
g_static_private_set
@@ -446,3 +447,4 @@ EXPORTS
glib_major_version
glib_micro_version
glib_minor_version
g_spaced_primes_closest