Bug 2252276 - units: configure scripts needs C compatibility fixes
Summary: units: configure scripts needs C compatibility fixes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: units
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2023-11-30 14:55 UTC by Florian Weimer
Modified: 2023-12-01 08:56 UTC (History)
3 users (show)

Fixed In Version: units-2.22-7.fc40
Clone Of:
Environment:
Last Closed: 2023-11-30 15:06:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
units-configure-c99.patch (790 bytes, patch)
2023-11-30 14:58 UTC, Florian Weimer
no flags Details | Diff

Description Florian Weimer 2023-11-30 14:55:32 UTC
It calls mbsrtowcs with an incorrect parameter type:

int
main ()
{
wchar_t *out;char *in;char *res;
     res=setlocale(LC_CTYPE,"");res=in;
     mbsrtowcs(out, &res, 2, NULL);
     wcswidth(out,2);
  ;
  return 0;
}

The type of res should be const char *, not char *.

Reproducible: Always

Comment 1 Florian Weimer 2023-11-30 14:57:41 UTC
Filing this here because upstream does not seem to have a public bug tracker.

Comment 2 Florian Weimer 2023-11-30 14:58:26 UTC
Created attachment 2002135 [details]
units-configure-c99.patch

Comment 3 Florian Weimer 2023-11-30 15:06:18 UTC
Also mailed the patch to the upstream author.

Comment 4 Jan Macku 2023-12-01 08:56:30 UTC
Thank you Florian, for handling this Bug.


Note You need to log in before you can comment on or make changes to this bug.