[Freeciv-tickets] [freeciv] #44212: user_home_dir() just discards $HOME on Windows

Back to archive index
OSDN Ticket System norep****@osdn*****
Sun Mar 27 19:08:46 JST 2022


#44212: user_home_dir() just discards $HOME on Windows

  Open Date: 2022-03-27 13:01
Last Update: 2022-03-27 13:08

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44212
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44212

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-03-27 13:08 Updated by: cazfi

Comment:

Likely makes to sense to rewrite it so that also the log messages refer to correct environment variable. Currently they speak of "HOME" even when it's "APPDATA" in reality.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

user_home_dir() assigns 'env = getenv("HOME")', but on Window that's immediately followed by 'env = getenv("APPDATA")', i.e., it doesn't use value of $HOME for anything. Either it should consider the value, or not to get it at all.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44212
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44212



More information about the Freeciv-tickets mailing list
Back to archive index