Issue #11747: Fix range formatting in context and unified diffs.