We consider a static, cylindrically symmetric, charged, gravitating object as a perfect fluid and investigate the gravitational binding energy. It is found that only the localized part of the mass function provides the gravitational binding energy, whereas the nonlocalized part generated by the electric coupling does not contribute to it.