@taboo:
I thought France was always weird about its immigration and stuff?
Yes and no. France has for very long been really cautious about immigration because so many people have been flocking over the Mediterranean and straight into France from its former colonies and from Northern Africa in general, and French nationalism aiming to "preserve its own culture" is for whatever reason the most fervent branch of European nationalism apart from the Russians and the Balkan region's guys.
The real problem, though, and the one that this particular result is a consequence of, is that the French economy is in a really, really bad state. Possibly a decade away from a full collapse even. The unemployment is constantly rising and the economy keeps slowing down because of how poorly the whole system has been managed for ages now, and that's causing a lot of unhappiness and political instability. Their president, Hollande, was elected basically only because he promised to fix it (with unrealistic economic fairy tales), and now that he's utterly failed to do anything everyone's voting for the far right in protest.
France's problem, basically, is that their state economy functions around a very strong and generous government that hands out way more money than it's actually making. They have really strong unions influencing their economic decisions a lot, which has lead to a situation where the productivity of the working populace is very low due to them not being very well adjusted to a modern, fast working life but where they still have very high wages due to the unions constant lobbying. In addition, they have a huge public sector because the state and the unions want to support and subsidize the "French way of life" by bailing out and buying small unprofitable companies, especially in the countryside, and to keep the local agriculture flourishing by pouring in money that they never see again year after year. And to add to that, they also have to work with their banks that are in serious trouble because of some really dumb investment decisions in Greece and other loss-incurring places.
They're locked in a never-ending cycle of a worsening economic situation, and it's going to get really bad really quick unless they look one another in the eye and decide that they have to start changing their precious traditions. They're choking themselves to death, but are too proud to admit it. Germany keeps lobbying advantageous decisions within the EU legislation to give them more time to work their mess out, but that's not going to last forever either.