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

"format" fn from SRFI-28 broke some non-standard ASCII chars (UTF-8 set) #207

Open
felipelalli opened this issue Mar 1, 2016 · 2 comments

Comments

@felipelalli
Copy link

Example: "á" it shows �

@justinethier
Copy link
Owner

Do you have a code example?
Do you see the same behavior from ghci when working with these chars?

Husk (and Haskell, too) uses unicode for chars so I would have expected this to work.

@felipelalli
Copy link
Author

Do you have a code example?

Yes.

(import (scheme base)
        (scheme write)
        (srfi 28))

(display (format "~a Eu sou uma mensagem em ~a." "Olá" "português"))

Output:

Ol� Eu sou uma mensagem em portugu�s.%

Do you see the same behavior from ghci when working with these chars?

No.

Husk (and Haskell, too) uses unicode for chars so I would have expected this to work.

Me too. It should be an specific issue with the SRFI-28 implementation. I can use UTF-8 non-standard chars normally if not inside the format fn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants