GHC 2019-02-25

6 comments.

, https://git.io/fhbd6 in SNH48Live/KVM48
(Of course, with shitty filesystems, length of filenames could also be a problem. But let's not try to fix a problem that hasn't been reported yet.)

, https://git.io/fhbdi in SNH48Live/KVM48
File naming: UCS-2 compatible option
====================================

Certain shitty filesystems do not allow characters beyond `U+FFFF` in filenames. For instance, FAT32 is such a filesystem that only allows UCS-2 characters. We need to offer a compatibility option to replace non-[BMP](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane) characters with `U+FFFD` REPLACEMENT CHARACTER, �. The option could be called `ucs2_compatible_filenames`.

I discovered this problem when backing everything up onto Baidu Cloud Drive.

, https://git.io/fhb6G in Homebrew/brew
`:env_var` should be `:env`?

, https://git.io/fhb6Z in Homebrew/brew
Okay, looked at the code, found the bug:

https://github.com/Homebrew/brew/blob/59aac3347acf83e2b7950b8cb20df2b92986f4ec/Library/Homebrew/cli_parser.rb#L236-L238

Looks like `:env_var` should be `:env`.

Also commented on the original PR.

, https://git.io/fhb6n in Homebrew/brew
Well, just the same?

Unsetting all `HOMEBREW_*` env vars to make sure:

```console
$ brew config
HOMEBREW_VERSION: 2.0.2-78-g59aac33-dirty
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 59aac3347acf83e2b7950b8cb20df2b92986f4ec
Last commit: 24 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 5586214830894b3b84be367aa40d855cb7392d4c
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BINTRAY_KEY: set
HOMEBREW_BINTRAY_USER: zmwangx
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.d8XS1wCxxE/org.macosforge.xquartz:0
HOMEBREW_LOGS: /Users/zmwang/Library/Logs/Homebrew
HOMEBREW_VISUAL: /Users/zmwang/scripts/editor
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.21.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 9.0.1
macOS: 10.14.3-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1
XQuartz: 2.7.11 => /opt/X11
```

```console
$ HOMEBREW_VERBOSE=1 brew outdated --quiet --debug
Error: Options --quiet and --verbose are mutually exclusive.
/usr/local/Homebrew/Library/Homebrew/cli_parser.rb:241:in `block in check_conflicts'
/usr/local/Homebrew/Library/Homebrew/cli_parser.rb:229:in `each'
/usr/local/Homebrew/Library/Homebrew/cli_parser.rb:229:in `check_conflicts'
/usr/local/Homebrew/Library/Homebrew/cli_parser.rb:259:in `check_constraint_violations'
/usr/local/Homebrew/Library/Homebrew/cli_parser.rb:135:in `parse'
/usr/local/Homebrew/Library/Homebrew/cmd/outdated.rb:35:in `outdated'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'
```

Haven't looked at the code.

, https://git.io/fhbwY in Homebrew/brew
Pretty sure it's not.