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 '0x0001' cannot be converted to int #2047
Comments
What is the specific use case for this? |
Might be related: |
A specific use case in this context of the GNOME bug is the setting of permissions in config when building a project. For example, if you: |
This issue is about However, you do not really need this. As suggested on the GitLab issue, you can use strings. |
... however if we don't support octal we should not silently drop the leading |
meson defines `USER_DIR_MODE` with a raw octal value to be used as the default permissions when creating the user's configuration directory. However, meson does not support raw octal values[0], so the define misses the initial `0` value. Due to this, the directory is created with wrong permissions. This has been changed to use the octal value as a string in meson, so the definition has the proper value. Fixes #49 [0] mesonbuild/meson#2047
meson defines `USER_DIR_MODE` with a raw octal value to be used as the default permissions when creating the user's configuration directory. However, meson does not support raw octal values[0], so the define misses the initial `0` value. Due to this, the directory is created with wrong permissions. This has been changed to use the octal value as a string in meson, so the definition has the proper value. Fixes #49 [0] mesonbuild/meson#2047 (cherry picked from commit 37a6b94)
I'm using get_define() and to_int() which gives this error.
Haven't looked deeply into meson regarding this, but should String.to_int() be able to parse hexadecimal and other number systems?
The text was updated successfully, but these errors were encountered: