We provide necessary and sufficient conditions for the space of smooth functions with compact supports $$C^\infty _c(\Omega )$$ to be dense in Musielak–Orlicz spaces $$L^\Phi (\Omega where $$\Omega $$ is an open subset $${\mathbb {R}}^d$$ . In particular, we prove that if $$\Phi satisfies condition $$\Delta _2$$ , closure )\cap L^\Phi equal only measure singular points zero. This extends earlie...