WinGRASS and OSGeo4W g.proj -w in demolocation succeed in outputting WKT only from the shell command prompt. Neither work in the GUI console or through rgrass7::getLocationProj(), which reports 884 as the error code; see also OSGeo/rgrass#33.
Freshly installed WinGRASS 7.8.6-1 and GRASS 7.8.6 installed in fresh OSGeo4W; fully updated Windows 10.