Question regarding notation of a language decidability
The languages are not the same.

In the first one, $w$ is a part of the input.
In the second one, $w$ is fixed beforehand, and the language has to depend on what you fix it to be.