You need to have the PERMANENT mapset selected to run g.setproj successfully.
I have added a crude check so it will stop if the mapset is not PERMANENT. See
also bug 3876.
Paul
-------------------------------------------- Managed by Request Tracker