Denote by $\mathrm{Hom}$ continuous group homomorphisms. Fix the quotient homomorphism $\mathbb{R}\to S^1$.
Can one characterize those topological (e.g., locally compact, and in particular discrete) groups $G$ such that the induced map $\mathrm{Hom}(G,\mathbb{R})\to\mathrm{Hom}(G,S^1)$ is bijective?
Clearly this holds for $G$ if and only if it holds for the abelianization $G/\overline{[G,G]}$, so we can assume that $G$ is abelian and Hausdorff.