Motivated by recent studies by Dorey, Pocklington and Tateo for unitary minimal models perturbed by phi(1,2), we examine the thermodynamics of one-dimensional quantum systems, whose counterparts in the two-dimensional classical model are the dilute A(L) models in regime 2. The functional relations for arbitrary values of L are established. Guided by numerical evidence, we obtain a set of coupled integral equations from the established relations, which yields the evaluation of the free energy at arbitrary temperature. In the scaling limit, the integral equations coincide with the thermodynamic Bethe ansatz equations (TBA) proposed by Dorey, Pocklington and Tateo, thereby supporting their results. The new fermionic representations of the Virasoro characters are remarked upon briefly.