Workaround the Gradle crash due to non ASCII chars. (#26024)
Workaround the Gradle crash due to non ASCII chars. (#26024)

Cirrus puts the PR description and commit message in environment
variables.
These messages tend to have non ASCII characters sometimes (like
emojis), which triggers a Gradle bug (gradle/gradle#3117) resulting
in Gradle crashing without a helpful error message.

The real solution to this problem should be fixing the Gradle bug.
The better workaround on the Flutter side would be to set a UTF8 locale
on the Cirrus machine, but I have yet figured out how to do it.
For now to avoid more people from hitting this I'm working around by
temporarily unsetting the Cirrus environment variables with the PR
description and commit message.

A non ASCII character to make sure it works: 😄
flutter/flutter,Hixie/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,Hixie/flutter,cbracken/flutter,cbracken/flutter,cbracken/flutter,Hixie/flutter,tvolkert/flutter,flutter/flutter,Hixie/flutter,flutter/flutter,tvolkert/flutter,flutter/flutter,tvolkert/flutter,tvolkert/flutter,cbracken/flutter,flutter/flutter,tvolkert/flutter,cbracken/flutter,Hixie/flutter,cbracken/flutter,Hixie/flutter,tvolkert/flutter,flutter/flutter,tvolkert/flutter,Hixie/flutter,Hixie/flutter,flutter/flutter,Hixie/flutter,cbracken/flutter,Hixie/flutter,tvolkert/flutter,flutter/flutter,cbracken/flutter,flutter/flutter,flutter/flutter,cbracken/flutter