buglibiconv - Bugs: bug #67086, Relocation of translations doesn't...

 
 

bug #67086: Relocation of translations doesn't work on Windows with libiconv 1.18

Submitter:  Michele Locati <mlocati>
Submitted:  Mon 05 May 2025 12:15:49 PM UTC
   
 
Category:  Program Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 May 2025 01:09:50 PM UTC, comment #2: 

comment #1:

> Hmm. This is surprising, because the files lib/relocatable.h, lib/relocatable.c, lib/progreloc.c in gnulib have not changed significantly since 2022-05.


The only change between the two GitHub Action runs is just the libiconv version...

First I tried to switch to libiconv 1.18 with
https://github.com/mlocati/gettext-iconv-windows/pull/44/commits/b933702795162dee4ff95b289c680536d3f64e92

The build failed - see https://github.com/mlocati/gettext-iconv-windows/actions/runs/14832190530/job/41635630383

Then I reverted the previous commit with https://github.com/mlocati/gettext-iconv-windows/pull/44/commits/d4d3c232b14be6c3693f7674316eb3175d9b3421

And the build succeeded - see https://github.com/mlocati/gettext-iconv-windows/actions/runs/14832842331/job/41637702855

I checked that the first build failed to locate the .mo files with Process Monitor (https://learn.microsoft.com/en-us/sysinternals/downloads/procmon), which showed that the iconv.exe v1.18 tries to load the .mo file from C:\cygdrive\... (and only from that location).

Michele Locati <mlocati>
Mon 05 May 2025 12:52:29 PM UTC, comment #1: 

Hmm. This is surprising, because the files lib/relocatable.h, lib/relocatable.c, lib/progreloc.c in gnulib have not changed significantly since 2022-05.

Bruno Haible <haible>
Group administrator
Mon 05 May 2025 12:15:49 PM UTC, original submission:  

I'm building iconv and gettext on Windows with cygwin.

With libiconv 1.18, iconv.exe can't locate the translation files.


For example:

1. I compile the 1st time iconv.exe and install it to /cygdrive/c/installed

2. I compile gettext and install it to /cygdrive/c/installed

3. I compile the 2nd time iconv.exe and install it to /cygdrive/c/installed

4. I remane the C:\installed directory to C:\renamed

5. I set the environment variable LANGUAGE=it

6. I launch C:\renamed\bin\iconv.exe --help

iconv.exe tries to load the .mo file from

C:\cygdrive\c\installed\share\locale\it\LC_MESSAGES\libiconv.mo

instead of

C:\renamed\share\locale\it\LC_MESSAGES\libiconv.mo


Please note that with libiconv 1.17, everything works as expected (relocation of .mo files succeeds).

I'm attaching the config.log for both versions (1.17 and 1.18).

You can see the build steps on GitHub:

- for libiconv 1.17: https://github.com/mlocati/gettext-iconv-windows/actions/runs/14832842331/job/41637702855
- for libiconv 1.18: https://github.com/mlocati/gettext-iconv-windows/actions/runs/14832190530/job/41635630383

Michele Locati <mlocati>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #57195:  config-1.17.log added by mlocati (464KiB - application/octet-stream)
file #57196:  config-1.18.log added by mlocati (531KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by mlocati (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-05-05 mlocati Attached File- Added config-1.17.log, #57195
        Attached File- Added config-1.18.log, #57196

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code