GNOME Bugzilla – Bug 100119
unusual signal names cause trouble
Last modified: 2004-12-22 21:47:04 UTC
using anything but a-zA-Z and - or _ in signal names leads to somewhat unexpected consequences: e.g registering a signal with the name "bad name|or>" leads to g_signal_lookup ("bad name|or>") --> not found g_signal_lookup ("bad_name_or_") --> found g_signal_lookup ("bad-name-or-") --> found g_signal_lookup ("bad-name_or-") --> not found I think g_signal_newv should explicitly reject signal_names containing anything beyond a-zA-Z and - or _. For - and _ it may be better to normalize names to _ before creating the quark, instead of putting one all-'_' and one variant in the search array, since this doesn't cover mixed cases like my last example. all-'-'
The last sentence should read: For '-' and '_' it may be better to normalize names to '_' before creating the quark, instead of putting one all-'_' and one all-'-' variant in the search array, since this doesn't cover mixed cases like my last example.
I think we've decided to handle this by: - Documenting the subset we think should work - Declaring anything else defined - Leaving what currently works currently working So, I think it can be dup'ed on the doc bug 93108 *** This bug has been marked as a duplicate of 93108 ***