#974 closed enhancement (alreadydoingthat)

use g_ascii_str* functions instead of g_str*

Reported by: dreisner@… Owned by:
Priority: normal Milestone:
Component: BitlBee Version: 3.0.5
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:


The g_ascii_str* functions were introduced as a replacement for the less appropriately named g_str* functions. As of glib 2.2 (released 10 years ago), the g_str* functions are marked as deprecated and should not be used. To avoid potential future issues with compilation, replace all instances of these functions with the recommended new equivalents. This affects usage of g_strncasecmp as well.

Given the elapsed time frame here, it seems unlikely that these functions will ever go away, but this is an easy way to get rid of a lot of compiler warnings, making other warnings/errors stand out more.

The attached patch was generated from a bzr checkout.

Attachments (1)

use_g_ascii_str_functions.patch (68.9 KB) - added by dreisner@… at 2012-07-06T20:55:41Z.

Download all attachments as: .zip

Change History (4)

Changed at 2012-07-06T20:55:41Z by dreisner@…

comment:1 Changed at 2012-07-06T20:57:46Z by wilmer

The attached patch was generated from a bzr checkout.

Which one, something older than changeset:devel,911?

comment:2 Changed at 2012-07-06T21:04:47Z by dreisner@…

Apparently it was -- intriguing way of solving it, I suppose. You can mark this invalid -- apologies for the noise.

comment:3 Changed at 2012-07-06T21:25:34Z by wilmer

Resolution: alreadydoingthat
Status: newclosed

Heh, yeah, it's definitely a hack.

But when library authors do stupid backward-incompatible stuff I will hack around it in ways that take the least effort. This works perfectly. :-)

Modify Ticket

as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.