mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-10 22:41:51 +02:00
doc update
This commit is contained in:
@@ -3,6 +3,9 @@ jc changelog
|
|||||||
20220426 v1.18.8
|
20220426 v1.18.8
|
||||||
- Fix UnicodeEncodeError on some systems where LANG=C is set and unicode
|
- Fix UnicodeEncodeError on some systems where LANG=C is set and unicode
|
||||||
characters are in the output
|
characters are in the output
|
||||||
|
- Update history parser: do not drop non-ASCII characters if the system
|
||||||
|
is configured for UTF-8 encoding
|
||||||
|
- Enhance "magic syntax" to always use UTF-8 encoding
|
||||||
|
|
||||||
20220425 v1.18.7
|
20220425 v1.18.7
|
||||||
- Add git log command parser
|
- Add git log command parser
|
||||||
|
@@ -425,6 +425,9 @@ or by exporting to the environment before running commands:
|
|||||||
$ export LANG=C
|
$ export LANG=C
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On some older systems UTF-8 output will be downgraded to ASCII with `\\u`
|
||||||
|
escape sequences if the `C` locale does not support UTF-8 encoding.
|
||||||
|
|
||||||
#### Timezones
|
#### Timezones
|
||||||
|
|
||||||
Some parsers have calculated epoch timestamp fields added to the output. Unless
|
Some parsers have calculated epoch timestamp fields added to the output. Unless
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
# Table of Contents
|
# Table of Contents
|
||||||
|
|
||||||
* [jc.utils](#jc.utils)
|
* [jc.utils](#jc.utils)
|
||||||
|
* [asciify](#jc.utils.asciify)
|
||||||
* [warning\_message](#jc.utils.warning_message)
|
* [warning\_message](#jc.utils.warning_message)
|
||||||
* [error\_message](#jc.utils.error_message)
|
* [error\_message](#jc.utils.error_message)
|
||||||
* [compatibility](#jc.utils.compatibility)
|
* [compatibility](#jc.utils.compatibility)
|
||||||
@@ -18,6 +19,17 @@
|
|||||||
|
|
||||||
jc - JSON Convert utils
|
jc - JSON Convert utils
|
||||||
|
|
||||||
|
<a id="jc.utils.asciify"></a>
|
||||||
|
|
||||||
|
### asciify
|
||||||
|
|
||||||
|
```python
|
||||||
|
def asciify(string: str) -> str
|
||||||
|
```
|
||||||
|
|
||||||
|
Return a string downgraded from Unicode to ASCII with some simple
|
||||||
|
conversions.
|
||||||
|
|
||||||
<a id="jc.utils.warning_message"></a>
|
<a id="jc.utils.warning_message"></a>
|
||||||
|
|
||||||
### warning\_message
|
### warning\_message
|
||||||
|
2
man/jc.1
2
man/jc.1
@@ -686,6 +686,8 @@ or by exporting to the environment before running commands:
|
|||||||
$ export LANG=C
|
$ export LANG=C
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
On some older systems UTF-8 output will be downgraded to ASCII with `\\u` escape sequences if the \fBC\fP locale does not support UTF-8 encoding.
|
||||||
|
|
||||||
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
||||||
|
|
||||||
If a UTC timezone can be detected in the text of the command output, the timestamp will be timezone aware and have a \fB_utc\fP suffix on the key name. (e.g. \fBepoch_utc\fP) No other timezones are supported for aware timestamps.
|
If a UTC timezone can be detected in the text of the command output, the timestamp will be timezone aware and have a \fB_utc\fP suffix on the key name. (e.g. \fBepoch_utc\fP) No other timezones are supported for aware timestamps.
|
||||||
|
@@ -201,6 +201,8 @@ or by exporting to the environment before running commands:
|
|||||||
$ export LANG=C
|
$ export LANG=C
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
On some older systems UTF-8 output will be downgraded to ASCII with `\\u` escape sequences if the \fBC\fP locale does not support UTF-8 encoding.
|
||||||
|
|
||||||
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
||||||
|
|
||||||
If a UTC timezone can be detected in the text of the command output, the timestamp will be timezone aware and have a \fB_utc\fP suffix on the key name. (e.g. \fBepoch_utc\fP) No other timezones are supported for aware timestamps.
|
If a UTC timezone can be detected in the text of the command output, the timestamp will be timezone aware and have a \fB_utc\fP suffix on the key name. (e.g. \fBepoch_utc\fP) No other timezones are supported for aware timestamps.
|
||||||
|
@@ -328,6 +328,9 @@ or by exporting to the environment before running commands:
|
|||||||
$ export LANG=C
|
$ export LANG=C
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On some older systems UTF-8 output will be downgraded to ASCII with `\\u`
|
||||||
|
escape sequences if the `C` locale does not support UTF-8 encoding.
|
||||||
|
|
||||||
#### Timezones
|
#### Timezones
|
||||||
|
|
||||||
Some parsers have calculated epoch timestamp fields added to the output. Unless
|
Some parsers have calculated epoch timestamp fields added to the output. Unless
|
||||||
|
Reference in New Issue
Block a user