This statement by Crawford, for W, uses the sign convention of IUPAC, not that of Clausius. Though it does not explicitly say so, this statement refers to closed systems. Internal energy U is evaluated for bodies in states of thermodynamic equilibrium, which possess well-defined temperatures, relative to a reference state.