Adjust to ObjFW changes

This commit is contained in:
Jonathan Schleifer 2018-07-29 22:47:20 +02:00
parent 0facc3a80e
commit b5ca0769b2
No known key found for this signature in database
GPG key ID: D83A76BFE376345E

View file

@ -138,7 +138,7 @@ showHelp(OFStream *output, bool verbose)
prompt = [OFString stringWithFormat: @"Passphrase for site \"%@\": ", prompt = [OFString stringWithFormat: @"Passphrase for site \"%@\": ",
generator.site]; generator.site];
promptCString = [prompt cStringWithEncoding: [OFLocalization encoding]]; promptCString = [prompt cStringWithEncoding: [OFLocale encoding]];
if (keyFilePath != nil) if (keyFilePath != nil)
keyFile = [OFMutableData dataWithContentsOfFile: keyFilePath]; keyFile = [OFMutableData dataWithContentsOfFile: keyFilePath];
@ -153,7 +153,7 @@ showHelp(OFStream *output, bool verbose)
@try { @try {
of_string_encoding_t encoding = of_string_encoding_t encoding =
[OFLocalization encoding]; [OFLocale encoding];
prompt = [OFString stringWithFormat: prompt = [OFString stringWithFormat:
@"Repeat passphrase for site \"%@\": ", @"Repeat passphrase for site \"%@\": ",