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

string format specifier '{i:X4}' not working #36

Open
thautwarm opened this issue Dec 31, 2021 · 2 comments
Open

string format specifier '{i:X4}' not working #36

thautwarm opened this issue Dec 31, 2021 · 2 comments

Comments

@thautwarm
Copy link

let i = 123

$"\\u{i:X4}" # 
val it: string = "\u007B"

However it produces \u%P(X4) in 4.0.0-alpha-020...

@thautwarm
Copy link
Author

workaround:

(sprintf "%4X" i).Replace(" ", "0")

printf in fable_modules works well.

@dbrattli
Copy link
Collaborator

dbrattli commented Jan 1, 2022

FYI: This looks to be failing in Fable JS as well, please submit an issue to https://github.com/fable-compiler/Fable

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