bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63983] replace gethostbyname with getaddrinfo


From: Bruno Haible
Subject: [bug #63983] replace gethostbyname with getaddrinfo
Date: Sat, 1 Apr 2023 11:29:18 -0400 (EDT)

Update of bug #63983 (project gettext):

                Category:                    None => Translator tools       
                  Status:                    None => Fixed                  
             Assigned to:                    None => haible                 
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:


> gettext still uses gethostbyname, which is considered generally deprecated
function in favor of getaddrinfo.
> It would be good to replace the usage in gettext to future-proof it.

Thanks for the report. Done through
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=c5cdf41d436261b279c172753ac727335d44b9fd

> the main runtime usage seems to be in hostname.c
> and hostname is used by user-email.

Correct. And user-email is used by msginit.

> Perhaps a workaround could be to drop (remove) the hostname program from
gettext on Linux systems, etc?

It is true that on some Linux systems, gettext's 'hostname' program implements
a subset of the functionality of the (Debian-maintained) 'hostname' program.
The reason why it exists in gettext is for portability to systems that don't
have it. msginit should work also on those systems.

Do all Linux distros ship with the 'hostname' program by default? I wouldn't
bet on it.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63983>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]