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

glib::KeyFile::get_boolean() returns () for both true and false #279

Closed
0x3UH4224D opened this Issue Dec 23, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@0x3UH4224D
Copy link

0x3UH4224D commented Dec 23, 2017

glib::KeyFile::get_boolean() returns () for both true and false values.

conf file:

[foo]
boo=false;
zoo=true;

usage

use glib;
let conf = glib::KeyFile::new();
conf.load_from_file("./conf", glib::KeyFileFlags::NONE)?;

let boo = conf.get_boolean("foo", "boo"); // the returned value suppose to be Ok(false) but I got Ok(())
let zoo = conf.get_boolean("foo", "zoo"); // the same here, I got Ok(()) while I should get Ok(true)
@sdroege

This comment has been minimized.

Copy link
Member

sdroege commented Dec 23, 2017

Needs to be manually implemented so that the return value ends up in the Result instead of being discarded

@EPashkin

This comment has been minimized.

Copy link
Member

EPashkin commented Apr 19, 2018

This can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.