After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780634 - Remove remaining old codepage ABI comapt code
Remove remaining old codepage ABI comapt code
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
: 744512 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-03-28 06:45 UTC by Christoph Reiter (lazka)
Modified: 2017-07-25 10:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gconvert: Remove old win32 codepage ABI compat code (8.02 KB, patch)
2017-03-28 06:47 UTC, Christoph Reiter (lazka)
committed Details | Review
gdir: Remove old win32 codepage ABI compat code (3.66 KB, patch)
2017-03-28 06:47 UTC, Christoph Reiter (lazka)
committed Details | Review
genviron: Remove old win32 codepage ABI compat code (3.68 KB, patch)
2017-03-28 06:47 UTC, Christoph Reiter (lazka)
committed Details | Review
gfileutils: Remove old win32 codepage ABI compat code (6.09 KB, patch)
2017-03-28 06:48 UTC, Christoph Reiter (lazka)
committed Details | Review
giochannel: Remove old win32 codepage ABI compat code (2.69 KB, patch)
2017-03-28 06:48 UTC, Christoph Reiter (lazka)
committed Details | Review
gspawn: Remove old win32 codepage ABI compat code (24.35 KB, patch)
2017-03-28 06:48 UTC, Christoph Reiter (lazka)
committed Details | Review
gwin32: Remove old win32 codepage ABI compat code (6.15 KB, patch)
2017-03-28 06:49 UTC, Christoph Reiter (lazka)
committed Details | Review
gmodule: Remove old win32 codepage ABI compat code (7.83 KB, patch)
2017-03-28 06:49 UTC, Christoph Reiter (lazka)
committed Details | Review

Description Christoph Reiter (lazka) 2017-03-28 06:45:25 UTC
From what I see the ABI compat code was added more than 10 years ago, so removing it now should not affect anyone.

desrt did a similar change 4 years ago: https://git.gnome.org/browse/glib/commit/?id=8c42a663f8182f8281c083390aa761e8e9badc63

* It removes quite a lot of code, defines and ifdefery
* It should make the non-codepage functions available to bindings on Windows. The pygobject test suite currently fails because only the codepage symbols are accessible and only on 32bit.

To summarize the change:

Before:
* new 32/64bit code linked against *_utf8
* on 32bit the code page functions where exposed as well under the normal name so old binaries link against that

After:
* new 32/64bit code links against normal names
* old binaries will use the _utf8 variants which are equivalent
* 15 year old binaries might break if non-ASCII is involved
Comment 1 Christoph Reiter (lazka) 2017-03-28 06:47:21 UTC
Created attachment 348854 [details] [review]
gconvert: Remove old win32 codepage ABI compat code
Comment 2 Christoph Reiter (lazka) 2017-03-28 06:47:39 UTC
Created attachment 348855 [details] [review]
gdir: Remove old win32 codepage ABI compat code
Comment 3 Christoph Reiter (lazka) 2017-03-28 06:47:55 UTC
Created attachment 348856 [details] [review]
genviron: Remove old win32 codepage ABI compat code
Comment 4 Christoph Reiter (lazka) 2017-03-28 06:48:15 UTC
Created attachment 348857 [details] [review]
gfileutils: Remove old win32 codepage ABI compat code
Comment 5 Christoph Reiter (lazka) 2017-03-28 06:48:33 UTC
Created attachment 348858 [details] [review]
giochannel: Remove old win32 codepage ABI compat code
Comment 6 Christoph Reiter (lazka) 2017-03-28 06:48:50 UTC
Created attachment 348859 [details] [review]
gspawn: Remove old win32 codepage ABI compat code
Comment 7 Christoph Reiter (lazka) 2017-03-28 06:49:06 UTC
Created attachment 348860 [details] [review]
gwin32: Remove old win32 codepage ABI compat code
Comment 8 Christoph Reiter (lazka) 2017-03-28 06:49:22 UTC
Created attachment 348861 [details] [review]
gmodule: Remove old win32 codepage ABI compat code
Comment 9 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:08:02 UTC
Review of attachment 348854 [details] [review]:

Fine for me, see the minor comments.

::: glib/gconvert.c
@@ +1847,3 @@
+/* Binary compatibility versions. Not for newly compiled code. */
+
+_GLIB_EXTERN gchar* g_filename_to_utf8_utf8   (const gchar  *opsysstring,

* attached tot he func name

@@ +1852,3 @@
+                                               gsize        *bytes_written,
+                                               GError      **error) G_GNUC_MALLOC;
+_GLIB_EXTERN gchar* g_filename_from_utf8_utf8 (const gchar  *utf8string,

same

@@ +1864,3 @@
+                                               GError      **error) G_GNUC_MALLOC;
+
+gchar*

space before *

@@ +1874,3 @@
+}
+
+gchar*

same
Comment 10 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:24:55 UTC
Review of attachment 348855 [details] [review]:

Looks good.
Comment 11 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:26:00 UTC
Review of attachment 348856 [details] [review]:

Looks good
Comment 12 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:27:05 UTC
Review of attachment 348857 [details] [review]:

Looks good.
Comment 13 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:27:34 UTC
Review of attachment 348858 [details] [review]:

Looks good.
Comment 14 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:28:20 UTC
Review of attachment 348859 [details] [review]:

OK
Comment 15 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:28:57 UTC
Review of attachment 348860 [details] [review]:

OK
Comment 16 Ignacio Casal Quinteiro (nacho) 2017-04-06 14:29:48 UTC
Review of attachment 348861 [details] [review]:

Please split this patch:
 1. the compat stuff
 2. the new comments
Comment 17 Christoph Reiter (lazka) 2017-04-06 14:41:17 UTC
(In reply to Ignacio Casal Quinteiro (nacho) from comment #16)
> Review of attachment 348861 [details] [review] [review]:
> 
> Please split this patch:
>  1. the compat stuff
>  2. the new comments

Thanks. The comments are just moved, because the functions were deleted.
Comment 18 Christoph Reiter (lazka) 2017-04-06 17:29:08 UTC
Comment on attachment 348861 [details] [review]
gmodule: Remove old win32 codepage ABI compat code

was acked on IRC
Comment 19 Christoph Reiter (lazka) 2017-04-06 18:24:55 UTC
Thanks
Comment 20 Christoph Reiter (lazka) 2017-07-25 10:51:27 UTC
*** Bug 744512 has been marked as a duplicate of this bug. ***