2.6.1
[platform/upstream/glib.git] / README
1 General Information
2 ===================
3
4 This is GLib version 2.6.1. GLib is the low-level core
5 library that forms the basis for projects such as GTK+ and GNOME. It
6 provides data structure handling for C, portability wrappers, and
7 interfaces for such runtime functionality as an event loop, threads,
8 dynamic loading, and an object system.
9
10 The official ftp site is:
11   ftp://ftp.gtk.org/pub/gtk
12
13 The official web site is:
14   http://www.gtk.org/
15
16 Information about mailing lists can be found at
17   http://www.gtk.org/mailinglists.html
18
19 To subscribe: mail -s subscribe gtk-list-request@gnome.org < /dev/null
20 (Send mail to gtk-list-request@gnome.org with the subject "subscribe")
21
22 Installation
23 ============
24
25 See the file 'INSTALL'
26
27 Notes about GLib 2.6.0
28 ======================
29
30 * GLib 2.6 introduces the concept of 'GLib filename encoding', which is the
31   on-disk encoding on Unix, but UTF-8 on Windows. All GLib functions
32   returning or accepting pathnames have been changed to expect
33   filenames in this encoding, and the common POSIX functions dealing
34   with pathnames have been wrapped. These wrappers are declared in the
35   header <glib/gstdio.h> which must be included explicitly; it is not
36   included through <glib.h>.
37
38   On current (NT-based) Windows versions, where the on-disk file names
39   are Unicode, these wrappers use the wide-character API in the C
40   library. Thus applications can handle file names containing any
41   Unicode characters through GLib's own API and its POSIX wrappers,
42   not just file names restricted to characters in the system codepage.
43
44   To keep binary compatibility with applications compiled against
45   older versions of GLib, the Windows DLL still provides entry points
46   with the old semantics using the old names, and applications
47   compiled against GLib 2.6 will actually use new names for the
48   functions. This is transparent to the programmer.
49
50   When compiling against GLib 2.6, applications intended to be
51   portable to Windows must take the UTF-8 file name encoding into
52   consideration, and use the gstdio wrappers to access files whose
53   names have been constructed from strings returned from GLib.
54
55 * Likewise, g_get_user_name() and g_get_real_name() have been changed 
56   to return UTF-8 on Windows, while keeping the old semantics for 
57   applications compiled against older versions of GLib.
58
59 * The GLib uses an '_' prefix to indicate private symbols that
60   must not be used by applications. On some platforms, symbols beginning 
61   with prefixes such as _g will be exported from the library, on others not. 
62   In no case can applications use these private symbols. In addition to that, 
63   GLib+ 2.6 makes several symbols private which were not in any installed 
64   header files and were never intended to be exported.
65
66 * To reduce code size and improve efficiency, GLib, when compiled 
67   with the GNU toolchain, has separate internal and external entry 
68   points for exported functions. The internal names, which begin with 
69   IA__, may be seen when debugging a GLib program.
70
71 * On Windows, GLib no longer opens a console window when printing
72   warning messages if stdout or stderr are invalid, as they are in
73   "Windows subsystem" (GUI) applications. Simply redirect stdout or
74   stderr if you need to see them.
75
76 * The child watch functionality tends to reveal a bug in many
77   thread implementations (in particular the older LinuxThreads 
78   implementation on Linux) where it's not possible to call waitpid() 
79   for a child created in a different thread. For this reason, for 
80   maximum portability, you should structure your code to fork all 
81   child processes that you want to wait for from the main thread.
82
83 * A problem was recently discovered with g_signal_connect_object(); 
84   it doesn't actually disconnect the signal handler once the object being 
85   connected to dies, just disables it. See the API docs for the function 
86   for further details and the correct workaround that will continue to 
87   work with future versions of GLib.
88
89 How to report bugs
90 ==================
91
92 Bugs should be reported to the GNOME bug tracking system. 
93 (http://bugzilla.gnome.org, product glib.) You will need
94 to create an account for yourself.
95
96 In the bug report please include:
97
98 * Information about your system. For instance:
99
100    - What operating system and version
101    - For Linux, what version of the C library
102
103   And anything else you think is relevant.
104
105 * How to reproduce the bug. 
106
107   If you can reproduce it with one of the test programs that are built 
108   in the tests/ subdirectory, that will be most convenient.  Otherwise, 
109   please include a short test program that exhibits the behavior. 
110   As a last resort, you can also provide a pointer to a larger piece 
111   of software that can be downloaded.
112
113 * If the bug was a crash, the exact text that was printed out
114   when the crash occured.
115
116 * Further information such as stack traces may be useful, but
117   is not necessary.
118
119 Patches
120 =======
121
122 Patches should also be submitted to bugzilla.gnome.org. If the
123 patch fixes an existing bug, add the patch as an attachment
124 to that bug report.
125
126 Otherwise, enter a new bug report that describes the patch,
127 and attach the patch to that bug report.
128
129 Bug reports containing patches should include the PATCH keyword
130 in their keyword fields. If the patch adds to or changes the GLib 
131 programming interface, the API keyword should also be included.
132
133 Patches should be in unified diff form. (The -u option to GNU
134 diff.)