We report the charge-changing cross sections (σcc) of 24 p-shell nuclides on both hydrogen and carbon at about 900A MeV, of which 8,9Li, 10–12Be, 10,14,15B, 14,15,17–22N and 16O on hydrogen and 8,9Li on carbon are for the first time. Benefiting from the data set, we found a new and robust relationship between the scaling factor of the Glauber model calculations and the separation energies of the nuclei of interest on both targets. This allows us to deduce proton radii (Rp) for the first time from the cross sections on hydrogen. Nearly identical Rp values are deduced from both target data for the neutron-rich carbon isotopes; however, the Rp from the hydrogen target is systematically smaller in the neutron-rich nitrogen isotopes. This calls for further experimental and theoretical investigations.