Wrong conversion of String to C String?

Open
#45 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, julia
Domain
backend

Research direction

Start by inspecting src/cairo.jl at the linked lines 49 and 82, comparing the argument expected by the called function with the String passed for format="julia:cairo". Reproduce or verify whether this relates to Julia issue 56150 and review the related Julia pull request 51275. Done means the conversion concern is resolved or clearly ruled out with appropriate verification.

Written by the indexing model from the issue text.

Description

I noticed this line of code in GraphViz.jl package, but later on a String object being used here (note the format="julia:cairo"). It doesn't seem right? The function expects C string, not Julia string? Could it be the reason for https://github.com/JuliaLang/julia/issues/56150?

related PR https://github.com/JuliaLang/julia/pull/51275

Dominant language
Julia
Stars
69
Forks
24
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JuliaGraphs/GraphViz.jl

All issues in JuliaGraphs/GraphViz.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.