Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
8db59560
Commit
8db59560
authored
Apr 25, 2016
by
Joshua Kalpin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the utf-8 warning message respect --no-ansi
Checks for the argument and prints a different version
parent
242da6b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
CHANGELOG.md
CHANGELOG.md
+4
-1
pod
bin/pod
+17
-6
No files found.
CHANGELOG.md
View file @
8db59560
...
...
@@ -15,7 +15,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
*
None.
*
The warning for not having utf-8 set as the default encoding for a
terminal now properly respects the
`--no-ansi`
argument.
[
Joshua Kalpin
](
https://github.com/Kapin
)
[
#5199
](
https://github.com/CocoaPods/CocoaPods/pull/5199
)
## 1.0.0.beta.8 (2016-04-15)
...
...
bin/pod
View file @
8db59560
#!/usr/bin/env ruby
if
Encoding
.
default_external
!=
Encoding
::
UTF_8
STDERR
.
puts
<<-
DOC
\e
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
\e
[0m
DOC
if
ARGV
.
include?
'--no-ansi'
STDERR
.
puts
<<-
DOC
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
DOC
else
STDERR
.
puts
<<-
DOC
\e
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
\e
[0m
DOC
end
end
if
$PROGRAM_NAME
==
__FILE__
&&
!
ENV
[
'COCOAPODS_NO_BUNDLER'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment