ValveSoftware / ValveSoftware/wine

Proton does not handle dates >2038 well

Open
#247 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

Proton version: wine-proton-9.0.2

Steps to reproduce:

  1. WINEPREFIX=/tmp/prefix wineboot
  2. touch -d '2039-02-28 16:21:42' /tmp/prefix
  3. WINEPREFIX=/tmp/prefix wine cmd.exe

Expected:

Z:\tmp>

Actual:

wine: stat /tmp/prefix : Value too large for defined data type

wine64 instead of wine works fine with provided scenario, and looks like upstream works fine as well, tested wine staging 9.12.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the listed wineboot, touch, and wine cmd.exe commands, then compare the behavior with wine64 and upstream Wine as described. Trace the handling of stat for /tmp/prefix around dates beyond 2038. Done means the 32-bit wine command accepts the provided 2039 timestamp and reaches the expected Z:\tmp prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.