Bug 17621 – Don't use deprecated stuff inside Phobos (std/uri.d(338): std.utf.toUTF8) or don't warn the users who are not using it.
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-07-08T15:08:00Z
Last change time
2017-07-08T17:28:46Z
Assigned to
nobody
Creator
kdevel
Comments
Comment #0 by kdevel — 2017-07-08T15:08:31Z
$ cat toutf8warning.d
void main ()
{
import std.uri;
"".decodeComponent;
}
$ dmd toutf8warning
[redacted]/dmd2/linux/bin64/../../src/phobos/std/uri.d(338): Deprecation: function std.utf.toUTF8 is deprecated - To be removed November 2017. Please use std.utf.encode instead.
$ dmd --version
DMD64 D Compiler v2.074.1
Copyright (c) 1999-2017 by Digital Mars written by Walter Bright
Comment #1 by dlang-bugzilla — 2017-07-08T17:28:46Z