Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from idn11 to idn2 #218

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
~/.ivy2/cache
~/.coursier
key: sbt-cache-${{ runner.os }}-${{ hashFiles('project/build.properties') }}
- name: Install libidn11-dev
- name: Install libidn2-dev
run: |
sudo apt-get update
sudo apt-get install libidn11-dev
sudo apt-get install libidn2-dev
- name: Compile
run: sbt -v compile
- name: Test
Expand Down
8 changes: 4 additions & 4 deletions core/src/main/scalanative/sttp/model/internal/idn/CIdn.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package sttp.model.internal.idn

import scala.scalanative.unsafe.{CInt, CString, Ptr, extern, link, name}

@link("idn")
@link("idn2")
@extern
private[idn] object CIdn {
@name("idna_to_ascii_8z")
@name("idn2_to_ascii_8z")
def toAscii(input: CString, output: Ptr[CString], flags: CInt): CInt = extern

@name("idna_strerror")
@name("idn2_strerror")
def errorMsg(rc: CInt): CString = extern

@name("idn_free")
@name("idn2_free")
def free(ptr: Ptr[_]): Unit = extern
}