Friendica
daniel:// stenberg://

daniel:// stenberg://

bagder@mastodon.social
daniel:// stenberg://

daniel:// stenberg://

bagder@mastodon.social
I write curl. I don't know anything.
ActivityPub
2024-07-29 21:59:27 2024-07-29 19:32:56 2024-07-29 19:32:51 5251774

daniel:// stenberg://
daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

9 months ago • •

daniel:// stenberg://

9 months ago • •


#trurl 0.14 is here. github.com/curl/trurl/releases…

Works best with libcurl 8.9.0 (and later)

Release 0.14 · curl/trurl

What's Changed remove a suprious trailing newline from a warning by @bagder in #309 trurl.1: document the exit codes by @bagder in #308 add "strict:" as prefix to a get component casecompare: a st...
GitHub
#trurl
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Krishean Draconis
mastodon - Link to source

Krishean Draconis

in reply to daniel:// stenberg:// • 9 months ago • •
ah, that fixes the space prefix bug i saw, but the #[url=https://tech.lgbt/tags/define]define[/url] strncasecmp causes some windows builds to fail, which i was going to put in a pull request for
#define
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Krishean Draconis

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Krishean Draconis • 9 months ago • •
@krishean I don't see why, but I always welcome PRs!
@Krishean Draconis
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Krishean Draconis
mastodon - Link to source

Krishean Draconis

in reply to daniel:// stenberg:// • 9 months ago • •

strncasecmp is an existing function in the mingw windows headers, so the build fails with a function redefined error (-Werror)

my solution was to rename it to trurl_casecompare

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Krishean Draconis

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Krishean Draconis • 9 months ago • •
@krishean the code does not use strncasecmp
@Krishean Draconis
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to daniel:// stenberg:// • 9 months ago • •
@krishean ah, so its a define there? maybe we can undef it first?
@Krishean Draconis
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Krishean Draconis
mastodon - Link to source

Krishean Draconis

in reply to daniel:// stenberg:// • 9 months ago • •
it was tidier just to remove the define and rename the function in a couple places, undef seemed a little messy
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Krishean Draconis

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Krishean Draconis • 9 months ago • •
@krishean like this? github.com/curl/trurl/pull/317

trurl: use casecompare instead of a strncasecmp define by bagder · Pull Request #317 · curl/trurl

Reported-by: Krishean Draconis Bug: https://tech.lgbt/@krishean/112871913828723815
GitHub
@Krishean Draconis
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Krishean Draconis
mastodon - Link to source

Krishean Draconis

in reply to daniel:// stenberg:// • 9 months ago • •
almost, i was seconds away from hitting submit on my pr: github.com/curl/trurl/commit/1…

Rename casecompare to trurl_casecompare · curl/trurl@10db71a

and remove define for strncasecmp to fix function redefinition error when compiling with mingw
GitHub
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Krishean Draconis

Krishean Draconis
mastodon - Link to source

Krishean Draconis

in reply to Krishean Draconis • 9 months ago • •
should i still submit it, or would you rather use your version?
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Krishean Draconis

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Krishean Draconis • 9 months ago • •
@krishean I prefer the shorter name!
@Krishean Draconis
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to daniel:// stenberg:// • 9 months ago • •
@krishean but thank you!
@Krishean Draconis
  •  Languages
  •  Search Text
  •  Share via ...
⇧