elm_datetime: Add 'O' character to ignore POSIX alternative format in format. 21/145721/2
authorWoochan Lee <wc0917.lee@samsung.com>
Wed, 23 Aug 2017 10:52:14 +0000 (19:52 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 23 Aug 2017 11:44:21 +0000 (11:44 +0000)
commit039a7196e4c0af31dc2b4ef565da19bc800e7ee1
tree0e29f527eb1a727c9312bbb55e6948e4338729b9
parent409441cfd8cdcfe4fef896cce82fdaa2b31be55b
elm_datetime: Add 'O' character to ignore POSIX alternative format in format.

Summary:
_parse_format() function filtering "_/-/0/^/*" to filter POSIX alternatvie/extension formats,
But the Datetime do not appear in some locale(fa_IR, lzh_TW, my_MM, or_IN) with 'O'.

+ improve code. (not compare with all of the characters. instead of that using strchr)

https://lh.2xlibre.net/values/d_t_fmt/

@fix

Test Plan: Set locale as fa_IR and create DateTime. and see fields, not appears.

Reviewers: jpeg, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5020

Change-Id: I5c64f301324834b771c452c9cf39da6faa782274
src/lib/elm_datetime.c